6 ms·
> do always, then inhibit or ignore Explain?
by tantalor 12y ago
> do always, then inhibit or ignore
Explain?
- ShaunK 12y agoRather than conditionally execute code (to avoid performing an unnecessary expensive operation) always execute the code, then discard the result if it is unneeded. The idea being that the performance gained by avoiding the unnecessary operation is not worth the complexity added.
- chillacy 12y agoAlso adds consistency, which I'm sure is important in realtime games
- Guvante 12y agoAs a minor note, conditional checks can have significant performance impacts if you don't consistently handle the conditional. As an example performing an operation every other frame can cause your CPU to thrash due to always taking the wrong path. (I of course am oversimplifying and OOO CPUs are quite complex)
- deleted 12y ago[deleted]
- deleted 12y ago[deleted]