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

Published: 19 November 2021
on channel: RyiSnow
46,948
915

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.

Guidelines for using Blue Boy Adventure's code and assets:
https://docs.google.com/document/d/1q...

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


On this page of the site you can watch the video online Improving Rendering Performance - How to Make a 2D Game in Java #11 with a duration of hours minute second in good quality, which was uploaded by the user RyiSnow 19 November 2021, share the link with friends and acquaintances, this video has already been watched 46,948 times on youtube and it was liked by 915 viewers. Enjoy your viewing!