Patrefans
outsiderartisan from patreon
outsiderartisan patreon

Asset Management and Repaints - Hex Devlog #3

🕑 Added 2023-04-06 13:44:21 +0000 UTC

Comments

Outsider Artisan

I should clarify, the game is in good shape now! These problems are largely solved (if in a cursed way). The game runs fine and feels good to play, I think.

Derpy

take your time, it would be great when it comes out

DarkPhoenix

Yeah, the issue with the default loading system in HTML is that it was designed for sequential loading, which is generally consider better when making standard webpages, but in games like this, not so much.

Outsider Artisan

Good guess since canvas can be quite slow, but I'm using image elements and backgrounds for everything. The repainting is definitely caused by the image elements reflowing (they aren't actually, but webkit browsers repaint anyway when they think they *might*) when they have backgrounds. Ironically, I felt that image elements w/ backgrounds would be faster generally, and I'm less comfortable with canvas anyway, but I bet canvas wouldn't be having these problems in the first place, and even if it did I could control when it repaints/renders stuff way easier. The engine is a custom variant of Twine SugarCube.

DarkPhoenix

What engine are you using? Because I'm betting the problem is canvas, but it's hard to know without knowing the engine.


More Creators