• Matteo Bruni's avatar
    wined3d: Reduce CS spin count to 2000. · f032ccc2
    Matteo Bruni authored
    Over the last few Wine releases we greatly reduced the need for the
    application thread to wait for replies from the CS thread. Compared to
    the time when the command stream was initially introduced, it's now
    quite likely that, when the command queues become empty, they are
    going to stay like that for a while (e.g. the game is throttling the
    framerate or is busy doing some CPU work on its part before generating
    more commands).
    
    As a first step, reduce the spin count to reduce the busy waiting in
    wined3d_cs_run(). In my tests this significantly reduces CPU usage,
    with minimally decreased performance in a few rare cases but also
    significantly improved performance in many cases (notably with
    integrated GPUs where freeing the CPU directly allows more power to be
    allocated to the GPU).
    f032ccc2
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...