]> git.cworth.org Git - apitrace/commit
retrace: Sleep when polling for input.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 13 Oct 2012 08:27:07 +0000 (09:27 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 13 Oct 2012 08:34:39 +0000 (09:34 +0100)
commite3cd78b53b9a39913d847c4ef1779f14a391177f
treeaaa474cc745210f5abf6c06c654fc69a67bdeb71
parente9392864d660f2d4e2c325e9b01ff7121786d92c
retrace: Sleep when polling for input.

As Carl Worth identified, if the user passed the "-w" option to beable
to see the last frame of the retrace, the glretrace would enter a
busy-waiting loop, consuming as much CPU as possible.
common/os_time.hpp
retrace/d3dretrace_main.cpp
retrace/glretrace_main.cpp