3 ms·
Approximations, including temporal ones, are also science. Ever seen a texture pop in instead of a stutter? If a lock would be taken on that load without timeo
by AstralStorm 7y ago
Approximations, including temporal ones, are also science.
Ever seen a texture pop in instead of a stutter? If a lock would be taken on that load without timeout (very short) it'd either not load on time or load when it's no longer needed.
- smaddox 7y agoNo need for a lock for such synchronization between a loading thread and a rendering thread, though, when you can use an atomic pointer or ready flag. Maybe a lazy GUI framework could use a mutex timout, though.