mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 02:29:17 +02:00
async mesh loading
This commit is contained in:
@@ -447,10 +447,6 @@ void driver_mode::enter()
|
||||
|
||||
TDynamicObject *nPlayerTrain{((Global.local_start_vehicle != "ghostview") ? simulation::Vehicles.find(Global.local_start_vehicle) : nullptr)};
|
||||
|
||||
if( scene::eu7::section_stream_active() ) {
|
||||
scene::eu7::dismiss_loading_screen();
|
||||
}
|
||||
|
||||
Camera.Init(Global.FreeCameraInit[0], Global.FreeCameraInitAngle[0], nullptr);
|
||||
Global.pCamera = Camera;
|
||||
Global.pDebugCamera = DebugCamera;
|
||||
@@ -468,14 +464,6 @@ void driver_mode::enter()
|
||||
Camera = Global.pCamera;
|
||||
}
|
||||
scene::eu7::update_section_stream( Global.pCamera.Pos );
|
||||
for( int i { 0 }; i < 64; ++i ) {
|
||||
scene::eu7::drain_section_stream();
|
||||
if( scene::eu7::section_stream_ready_around(
|
||||
stream_pos,
|
||||
scene::eu7::kSectionStreamBootstrapRadiusKm ) ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (nPlayerTrain)
|
||||
|
||||
@@ -60,7 +60,8 @@ bool scenarioloader_mode::update() {
|
||||
WriteLog( "Scenario loading time: " + std::to_string( std::chrono::duration_cast<std::chrono::seconds>( ( std::chrono::system_clock::now() - timestart ) ).count() ) + " seconds" );
|
||||
|
||||
if( scene::eu7::section_stream_active() ) {
|
||||
scene::eu7::preload_section_stream( 3000.0 );
|
||||
// Bounded PACK drain after scenario parse — shortens black overlay in driver mode.
|
||||
scene::eu7::preload_section_stream( 8000.0 );
|
||||
}
|
||||
|
||||
// TODO: implement and use next mode cue
|
||||
|
||||
Reference in New Issue
Block a user