New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug with more load on process than it should be #24
Comments
The original code was
Currently, with that fix, code looks like this:
I found in r8384 (leaked COP svn revision ~March 2012) this code:
Which code is better and what does it do? |
@Xottab-DUTY Code "if (p_cnt < (nWorkers * 64))" i found in sources of release engine version of COP Code "if (p_cnt < nWorkers) = p_cnt;" i did not see and don`t tried to use |
Now i noticed that this change is not in the dev and another branches of project. But why? |
@nitrocaster fixed this.. Maybe this commit was occasionally dropped.
or
|
CPU usage is 90% on my 6-core with: if (p_cnt < nWorkers) if (p_cnt < (nWorkers * 64)) Is how it is in Shadow of Chernobyl and Clear Sky source and does seem to run better then * 20. Only 20% CPU usage. I downloaded CoP revision 8384. It seems to be much older then whatever Nitro used as the base for OpenXray. |
Oh, thank you! P.S. by the way, @ViHtarb says that |
I didn't notice any graphical differences, only lag when using I don't know about r8384. It's strange as it has many slight differences, almost like it's sabotage to make it run as shitty as possible. |
In theory |
Plz fix a bug in xrRender/ParticleEffects.cpp in line 546 and xrParticles/particle_actions_collection.cpp in line 1779:
change from if (p_cnt < nWorkers * 20) on if (p_cnt < nWorkers * 64)
The text was updated successfully, but these errors were encountered: