Improving Rendering Performance - How to Make a 2D Game in Java #11

Channel:
Subscribers:
24,000
Published on ● Video Link: https://www.youtube.com/watch?v=fZLfJSXs0BU



Category:
Tutorial
Duration: 21:25
19,824 views
452


In this video we will scale our buffered images before the game loop starts and improve the total draw time. We also optimize our code a little bit so it looks cleaner and requires less typing in a long run.

I know this is kind of a boring episode but it's an important preparation for the second half where we handle more objects/graphics.

If you have any questions, feel free to leave a comment!
Thanks for watching.

Timestamps:
0:00 Checking how long it is taking to draw
3:59 Draw time before the optimization
5:45 How to scale BufferedImage
8:16 Create a class to handle scaling
10:15 Optimizing tile setup
14:46 Scaling player images
18:14 Scaling object images
20:13 Draw time after the optimization

#java2d #javagamedevelopment #javagametutorial







Tags:
#javatopdown2dgame
javabuildagame
java2dgametutorial
scalebufferedimage
renderingoptimization
improverenderinginjava
java2drendering
improvegameloopinjava