ro0mquy / rtificial

Flashing Visuals and Dope Sound | Das Git™
http://rtificial.org/
1 stars 0 forks source link

compile all shaders on startup/button #67

Open phistep opened 9 years ago

phistep commented 9 years ago

When i start up the application for the first time in some while, then no shaders are cached on the gpu. This is a problem in the first run of play. The compilation of big shaders takes some time which causes the video playback to freeze until done. When we start compiling all shaders while the first one is playing there might be a chance we get the shaders done before they are needed the first time.

phistep commented 9 years ago

on systems with low resources this is a bad idea

vincent23 commented 9 years ago

If you look at common resource usage of shader compilers everything seems like a low-end system.

vincent23 commented 9 years ago

I'd suggest instead of automatically compiling all shaders to include a button, which performs all necessary precalculations for smooth playback.