Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QuadDraw revisited - drawing program work in progress
#16
(06-01-2022, 07:22 PM)James D Jarvis Wrote: Just reading the code and wondering why you never free fontsheet&  , is that because you passed it to _Memimage ?

No, to increase speed when calling the SUB more than once.  I decided it better to make fontsheet& only once and just leave it open for the whole program run, so the image doesn't have to be decoded/created every time the SUB is called.  I plan to use this for things that need fast drawing.  In my testing this increased speed over 10x.  I could call the SUB 1500 times in one second this way, but only 135 times a second when freeing the image and having to make it over every time.   I usually don't like to leave images hanging open, but in this case thought it worth it for the speed gain.

- Dav

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
RE: QuadDraw revisited - drawing program work in progress - by Dav - 06-01-2022, 10:36 PM



Users browsing this thread: 4 Guest(s)