Question about the update() function
-
Hello all, I have done a little coding back when petit computer was around and am just getting started with F4NS's tutorials.
What is the purpose/advantage of having to use update() after "printing" text?
I understand "printing" is like jotting it on paper and "updating" is then like saying it aloud, yet why is it necessary?
If you could give example or use cases of the importance I may run I to layer down the road that would be helpful!
Thank you,
Valenti -
It has to do with FUZE utilizing framebuffers, which in the end get sent to the display. Petit Computer did not have frame buffers. It instead utilized the DSi's 2D capabilities that always refreshed at 60fps, particularly the tilemap layers. Where FUZE has to draw the text to buffers, PTC simply located the tiles that referred to each character that it prints, and plugged in those tile indices to the tilemap (hence why they were always 8x8 pixels that couldn't be scaled). The 2D hardware automatically rendered the tilemaps, making no need to "update" print statements like one would need to in FUZE.
-
Makes sense, thank you for the response.
-
The main benefit is that doing graphics in huge batches like this and then calling an 'update' function makes performance much better.
Basically you'd be able to do way more graphics text and other stuff before FUZE slows down with the update thing in place than without it.