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

Publié le: 19 novembre 2021
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Improving Rendering Performance - How to Make a 2D Game in Java #11 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur RyiSnow 19 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 46,948 fois et il a aimé 915 téléspectateurs. Bon visionnage!