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
TextureGPUManager::setWorkerThreadMinimumBudget will trigger the error check on budget set in constructor #198
Comments
Mmm... (very long mmmmm.....) The condition evaluation is not wrong. The train of thought is the following (speaking out loud to see if I sort it out):
OK, now that I laid out the reasoning, perhaps the warning is too exaggerated. minNumSlices > 1 and minResolution >= maxSplitResolution are not contradictory. But having minNumSlices > very_large and minResolution >= maxSplitResolution may indicate something is incorrectly setup (but not necessarily. If you're very tight on memory you may wanna treat lots of textures as spikes; and hurt streaming performance in exchange for... not crashing your app because you're already close to the memory limit) |
That is a real detailed description about the memory management :). But the problem is very simple:
... If this budget was now reset with the function we get the warning since we have two slices with a resolution which equals to the maxSplitResolution... In my opinion it should be possible to set the default values without warnings. It seems that there is an inconsistency in the warning-condition with the default parameterset. |
Agreed. Thanks for the feedback. Stuff that is obvious from the user's perspective sometimes eludes the library maintainer. I loosened the check a bit (and documented the warning) so that defaults don't trigger the warning. Thanks! |
Hello,
the error-check will trigger the warning if you just fill in the default data for the budget. I think that just the error condition is wrong in this case.
Shouldn't it be
if( itor->minNumSlices > 1u && itor->minResolution > maxSplitResolution )
instead of
if( itor->minNumSlices > 1u && itor->minResolution >= maxSplitResolution )
?Thanks
ogre-next/OgreMain/src/OgreTextureGpuManager.cpp
Line 1357 in a481059
The text was updated successfully, but these errors were encountered: