16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 20:19:18 +02:00

Tune EU7 PACK streaming for fast camera flight and reduce frame hitches

This commit is contained in:
maj00r
2026-06-14 18:25:42 +02:00
parent ada6553917
commit d6c9b4e5e1
6 changed files with 402 additions and 81 deletions

View File

@@ -63,7 +63,7 @@ warm_one_pack_texture( std::string texture_file, std::unordered_set<std::string>
if( false == seen.insert( texture_file ).second ) {
return false;
}
if( false == g_session_warmed_textures.insert( texture_file ).second ) {
if( g_session_warmed_textures.contains( texture_file ) ) {
return false;
}
@@ -73,6 +73,8 @@ warm_one_pack_texture( std::string texture_file, std::unordered_set<std::string>
log_pack_texture_fail( texture_file );
return false;
}
g_session_warmed_textures.insert( texture_file );
GfxRenderer->Fetch_Material( resolved );
for( int skinindex { 1 }; skinindex <= 4; ++skinindex ) {