Skip to content

Commit

Permalink
Suggest optimal value for setMultiLoadPool
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Feb 25, 2023
1 parent 944f7cd commit 4488f13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OgreMain/include/OgreTextureGpuManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,9 @@ namespace Ogre
This can have an impact if you rely on the order (e.g. if you are using reservePoolId()).
If you need to preserve ordering, you can use TextureGpu::scheduleTransition and
set bSkipMultiload = true.
Testing indicates the ideal value is somewhere between 4-8 threads.
More threads and you get diminishing returns.
@param numThreads
How many number of threads to use for loading multiple textures.
0 to disable this feature (Default).
Expand Down

0 comments on commit 4488f13

Please sign in to comment.