Slick2D vs Straight LWJGL

前端 未结 2 809
醉酒成梦
醉酒成梦 2021-02-06 23:48

I\'ve been delving into game programming with Slick2D, and I\'ve began to wonder if in the long run, knowing LWJGL would be more helpful. On one hand, Slick2D is fast and simpl

2条回答
  •  抹茶落季
    2021-02-06 23:57

    Really nice answer from normalocity, I just want to say if you want to really optimize your drawing scene in Slick2D, you need to know than standard draw method of Slick use a glBegin/glEnd.

    With a lot of sprite (~10 000), this method is really slow. To avoid this problem you can use drawEmbedded method on a very big sprite-sheet or make your own method with LWJGL. The best is to make a VBO rendering => http://lwjgl.org/wiki/index.php?title=Using_Vertex_Buffer_Objects_(VBO).

提交回复
热议问题