03-07-2024, 09:18 PM
(03-07-2024, 07:03 PM)Pete Wrote: If you just have a few small images, approx. 10, would it be better to load each at the top of the program and keep them in memory, or use the _LOAD statement each time they are needed? In my routine, these images overlay each other, so they get exchanged a lot; so the way I'm doing this now is to load them only when needed, and free them once loaded and displayed.Load them all at the beginning. Many of the games I've written have well over 10 images (sometimes in the hundreds) loaded in memory ready for use. The combination of _LOADIMAGE and disk access over and over will slow things down for you.
Here is the routine I'm working on: https://qb64phoenix.com/forum/showthread...8#pid23598
Thanks,
Pete