Replies: 1 comment 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. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some data structs that are loaded via
serdeand contain SVG data inside them. As I need to display all the images found, I loop through all maps within them and load the images.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?
Beta Was this translation helpful? Give feedback.
All reactions