Complex GUI
Posted: Tue Mar 01, 2022 6:04 pm
I'm building a complex GUI for a PC connected electronic instrument.
There is realtime data being displayed (graphs), as well occacsionally updated image (graph backgrounds/historical data), user interactive buttons (essentially static) as well as fastmoving number displays, mouse sprite and several other sprites that are animated.
What I'm doing at the moment is generating the image background, buttons and historical data as an Image, then drawing live data on the screen live after bufferflipping. What I think I want to do is this:
Flipbuffer
Generate basic background black
Overlay basic (graph graticule) as either a sprite or some sort of alpha image.
Overlay historical graph data
Overlay live graph data
Overlay fastmoving numbers
Overlay mousesprite
Alot of the computationally intensive images I calculate only when changing.
So my question is, is it better (from a processing perspective) to create these overlayed images as giant (i.e. fullscreen) alphasprites and rebuild the screen each frame with just a handful of these, or is there a better way?
There is realtime data being displayed (graphs), as well occacsionally updated image (graph backgrounds/historical data), user interactive buttons (essentially static) as well as fastmoving number displays, mouse sprite and several other sprites that are animated.
What I'm doing at the moment is generating the image background, buttons and historical data as an Image, then drawing live data on the screen live after bufferflipping. What I think I want to do is this:
Flipbuffer
Generate basic background black
Overlay basic (graph graticule) as either a sprite or some sort of alpha image.
Overlay historical graph data
Overlay live graph data
Overlay fastmoving numbers
Overlay mousesprite
Alot of the computationally intensive images I calculate only when changing.
So my question is, is it better (from a processing perspective) to create these overlayed images as giant (i.e. fullscreen) alphasprites and rebuild the screen each frame with just a handful of these, or is there a better way?