Recently I’ve been working on a Java Raycaster (an applet), and have come across the obvious fact that Java2D is generally too slow for this kind of task (at least when at 640x480).
I was firstly using stretched images for each ‘wall slice’, but then converted to a memoryimagesource as i planned to implement floors and ceilings.
Of course, this all came to a grinding halt when i was greeted with 2fps when close to a wall on an Athlon XP 2000 :(.
Here are some screenshots of what I managed:
I’ve been doing much searching in regards to better 2D performance (in the area of DirectX, OpenGL etc, but generally tutorials for these in 2D in Java are scarce), but to no avail.
I’m hoping that someone can lead me in the direction of the best way to create a high performance 2D game in Java, and where I can find tutorials for whatever methods they suggest.
I hope to not inconvenience anyone with my ‘amateur’ question, but I’m really in need of the help :(.
Thanks for your time in advance,
§oulßlighter