Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Question about the update() function

    Coding
    3
    4
    396
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lawyerlounge
      lawyerlounge last edited by

      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

      1 Reply Last reply Reply Quote 2
      • Discostew
        Discostew F last edited by

        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.

        1 Reply Last reply Reply Quote 3
        • lawyerlounge
          lawyerlounge last edited by

          Makes sense, thank you for the response.

          1 Reply Last reply Reply Quote 0
          • K
            KuraIthys last edited by

            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.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post