Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could the order of condition-statements-machine-code (as in the case handling code)e.g. in the particle code be made rearranging according to in-game-heat-counting?


You could, but I doubt it would have much of an effect on performance. Modern CPUs are ridiculously good at looking ahead and executing paths pre-emptively, meaning that branching is far less of an issue. On the older consoles, branching was a big issue, so that would have helped there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: