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

environment-centric light level, groundwork for delayed texture upload, minor bug fixes

This commit is contained in:
tmj-fstate
2017-03-18 01:37:00 +01:00
parent 441b39ce5f
commit 775e959bc9
10 changed files with 277 additions and 95 deletions

View File

@@ -2582,7 +2582,6 @@ bool TGround::Init(std::string File)
// TFileStream *fs;
// int size;
std::string subpath = Global::asCurrentSceneryPath; // "scenery/";
auto const tokencount = cParser::countTokens( File, subpath );
cParser parser(File, cParser::buffer_FILE, subpath, Global::bLoadTraction);
std::string token;
@@ -2623,7 +2622,7 @@ bool TGround::Init(std::string File)
while (token != "") //(!Parser->EndOfFile)
{
++processed;
if( processed % 25 == 0 )
if( processed % 1000 == 0 )
{
UILayer.set_progress( parser.getProgress(), parser.getFullProgress() );
GfxRenderer.Render();