The GUI to end all GUI libraries (Let's Dream!)

Lutger lutger.blijdestijn at gmail.com
Tue Nov 27 03:14:58 PST 2007


Julio César Carrascal Urquijo wrote:
> 
> What worries me about immediate mode guis is performance. I suppose they 
> are great for building the gui portion of a game or some really flashy 
> app but I don't see an improvement for typical applications where the 
> gui doesn't change unless until it receives some input from the user.
> 
> Just picture a dumb +30 fields form that's using 100% CPU because it is 
> repainting it self every frame.
> 

You can, instead of using a frame-based approach, repaint as needed. The 
lack of state is in the interface, behind the scenes a library can do 
caching. I don't remember the link, but there was some guy who rewrote 
his traditional gui for a cellphone to an imgui one, and stated that 
performance was about the same.

One benefit though is that in normal gui's, a whole lot a state is 
retained and duplicated between the application and the gui library. In 
complex application, that sucks performance.




More information about the Digitalmars-d mailing list