museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
82 stars 14 forks source link

Implement CPU saving mode #150

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

This adds a CPU saving mode which stops drawing GUI in order to save as many CPU cycles for audio processing as possible.

This new mode can be toggled via the "Ctrl + Space" keyboard shortcut.

The README has been updated to include a section on the CPU saving mode. Please see this section for more details.

This commit should also improve the efficiency of the audio server in any case where the GUI visuals are not updating. If the GUI has not changed since the last time draw was called no GL calls will be enabled to ignore spending CPU cycles synchronising with the GPU.

cc @BlueJayLouche.