tjheldna Posted June 10, 2013 Share Posted June 10, 2013 Hey all, Now this used to happen me with LE2 also. When a level loads for the first four seconds or so everything moves really fast (i.e character controller) . After it then it evens out and the game speed is as expected . It's like I've hit the turbo button on my old 386 DX =) for a few seconds. Am I alone in seeing this? and is there anyway to stop it? Cheers! Quote Link to comment Share on other sites More sharing options...
Josh Posted June 10, 2013 Share Posted June 10, 2013 Pause timing when loading the map. See the Time class. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
beo6 Posted June 13, 2013 Share Posted June 13, 2013 I have paused it. It seems it helps a bit. At least the speedup have gone down from around 4 seconds or more to 1 or 1/2 second. my method for loading levels: void App::LoadMap(std::string mapfile = "") { if (mapfile == "") { mapfile = nextMap->nextMapFile; } //if ( mapfile != "" && mapfile != ".\\" && FileSystem::GetFileSize(mapfile) > 0 ) { if ( mapfile != "" && mapfile != ".\\" ) { Time::Pause(); world = World::Create(); world->Clear(); entities.clear(); //world->Release(); //create camera camera = Camera::Create(); camera->SetFOV(70); camera->SetRotation(90, 0, 0, true); Map::Load(mapfile, StoreWorldObjects); // target camera at player if (player) { //Vec3 cameraPosition = Vec3(player->entity->GetPosition()); //cameraPosition.y += 5; camera->SetPosition(0,10,0); camera->SetScript("Scripts/Cameras/TopDown.lua", true); camera->SetObject("target",player->entity); if (cameraEffect) { cameraEffect->entity->SetObject("camera",camera); } } Time::Resume(); } } 1 Quote Link to comment Share on other sites More sharing options...
tjheldna Posted June 14, 2013 Author Share Posted June 14, 2013 Yes, thanks guys, that did the trick! Quote Link to comment Share on other sites More sharing options...
beo6 Posted June 14, 2013 Share Posted June 14, 2013 mh. maybe i should pause it a bit longer then? Not sure why i still get a bit of a speedup after the level loading. Quote Link to comment Share on other sites More sharing options...
tjheldna Posted June 14, 2013 Author Share Posted June 14, 2013 I still get it but it is much better than before. Quote Link to comment Share on other sites More sharing options...
beo6 Posted June 14, 2013 Share Posted June 14, 2013 i hope we can somehow fix this completely, because currently even this short period of time can kill the player when he presses a movement key while it is speeded up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.