Hi,
I wrote a very simply 3D engine. Basically it is a software renderer that uses Java2D for drawing. It just draws a bunch of simple 3D shapes that consist of 2D polygons. No textures or anything. I ported the code to Slick to see if I get better performance but it actually runs slower on Slick. It runs about as fast as the Java2D version when started with -Dsun.java2d.opengl=true. It may not make much sense to use the OpenGL powered Slick to make a software renderer but it was just an eyperiment. Anyway, I was wondering why Slick isn’t faster at filling polygons then Java2D. (filling polygons is the bottleneck of the program)
Doesn’t it seem sorta counter-intuitive to use OpenGL to draw your 3D software renderer?
Slick isn’t optimized for drawing lots of rectangles/polygons per frame, although if care is taken in optimizations then it should be faster than Java2D. I can’t help you without seeing more source code, though…
lets just say Slick is, unfortunately, not often about performance
if you know about OpenGL, the Slick sourcecode is open and stuff, just look at it and you will see the problems
if in doubt use opengl yourself, while being aware that there can be issues when doing this in Slick, like odd graphical effects