FIUS / jvk

Sheets and project for the annual Java-Vorkurs of the Fachgruppe Informatik der Universität Stuttgart
GNU Affero General Public License v3.0
4 stars 9 forks source link

fixed flickering #135

Closed graefjk closed 3 years ago

graefjk commented 3 years ago

many students had issues with extreme flickering while running the program. this was caused by double buffering being turned off.

graefjk commented 3 years ago

this can also be fixed by using game.getGameWindow().getPlayfieldDrawer().setDoubleBuffering(true); before executing game.run();

ModellbahnFreak commented 3 years ago

Works. Can be merged...

graefjk commented 3 years ago

this Pull request still requires to be approved by someone who is not me to be merged.

graefjk commented 3 years ago

Were the new default settings tested on Windows and Linux? These graphic settings may not work for all OS/PC combinations (though double buffering enabled should just affect performance if i recall right so it should be safe).

yes, multible Students with Windows, Linux and MacOS used this fix during the jvk and none had Problems.