lots of people ask about using bufferstrategy in a window. i did too, so i made this app tonight to get to understand it better. it’s a basic demo, does a similar thing to Abuse’s demo, but in a window.
Download: http://members.austarmetro.com.au/~juddman/java/BufferStrat.jar
thanks JavaNoob for doing a great framework demo of a windowed/fullscreen app which uses bufferstrategy. posted at http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=share;action=display;num=1036791657
i used that, and took out the stuff that wasn’t necessary for windowed mode.
thanks abuse for your demo. posted at
http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=2D;action=display;num=1043770995
The FPS is limited at the moment to 50. it doesn’t use accurate timers. you can max the fps to 100 by changing SPEED=20 to 10, but it’s not really useful.
i can get about 1000 objects bouncing around the window in double or triple buffering mode without the FPS dropping from 50. If you try this and get diferent results, plz post your system specs.
my specs:
Dell Inspiron 1 ghz
GeForce 2 Go (32 mb)
Flat panel LCD (60 hz max)
Edit: Abuse: Hope you dont mind me using that pinball gif!