|
I have some data structs that are loaded via Right now, this is happening within the rendering process, which means it runs once a frame. Now I know the images are cached in theory and are not reloaded every frame but the looping through maps in theory still runs. What is the best way to only run this code at application start or on demand? |
Replies: 2 comments 1 reply
|
The best way to handle such cases is to have a queue of requested changes (it could be the simplest This gives you great freedom, as it's not important where & when you emit requests. The queue could be even pre-filled during application creation. |
|
I wound up storing unique copies of the images in each of my instance structs, and updating those before the main GUI loop. Not ideal but it works. |
I wound up storing unique copies of the images in each of my instance structs, and updating those before the main GUI loop. Not ideal but it works.