mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 12:47:30 +01:00
Walk the shadow passes and the culled model groups on worker threads in the Vulkan renderer
This commit is contained in:
@@ -1590,6 +1590,8 @@ texture_bank::memory() const {
|
||||
memory_data result;
|
||||
for( auto const &texture : m_textures ) {
|
||||
if( texture.first == nullptr ) { continue; }
|
||||
// made by another thread at the moment
|
||||
if( texture.first->busy() ) { continue; }
|
||||
if( false == texture.first->data.empty() ) {
|
||||
++result.cpu.count;
|
||||
result.cpu.bytes += memory_of( texture.first->data );
|
||||
@@ -1668,6 +1670,10 @@ texture_bank::info() const {
|
||||
|
||||
for( auto const& texture : m_textures ) {
|
||||
|
||||
if( texture.first->busy() ) {
|
||||
// made by another thread at the moment, counted once it's done
|
||||
continue;
|
||||
}
|
||||
totaltexturesize += texture.first->size;
|
||||
#ifdef EU07_DEFERRED_TEXTURE_UPLOAD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user