mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Stabilize net parsing and reduce texture-cache churn
This commit is contained in:
parent
ae88b226b5
commit
6d55c19987
7 changed files with 143 additions and 27 deletions
|
|
@ -565,18 +565,21 @@ void Application::update(float deltaTime) {
|
|||
updateCheckpoint = "state switch";
|
||||
switch (state) {
|
||||
case AppState::AUTHENTICATION:
|
||||
updateCheckpoint = "auth: enter";
|
||||
if (authHandler) {
|
||||
authHandler->update(deltaTime);
|
||||
}
|
||||
break;
|
||||
|
||||
case AppState::REALM_SELECTION:
|
||||
updateCheckpoint = "realm_selection: enter";
|
||||
if (authHandler) {
|
||||
authHandler->update(deltaTime);
|
||||
}
|
||||
break;
|
||||
|
||||
case AppState::CHARACTER_CREATION:
|
||||
updateCheckpoint = "char_creation: enter";
|
||||
if (gameHandler) {
|
||||
gameHandler->update(deltaTime);
|
||||
}
|
||||
|
|
@ -586,12 +589,14 @@ void Application::update(float deltaTime) {
|
|||
break;
|
||||
|
||||
case AppState::CHARACTER_SELECTION:
|
||||
updateCheckpoint = "char_selection: enter";
|
||||
if (gameHandler) {
|
||||
gameHandler->update(deltaTime);
|
||||
}
|
||||
break;
|
||||
|
||||
case AppState::IN_GAME: {
|
||||
updateCheckpoint = "in_game: enter";
|
||||
const char* inGameStep = "begin";
|
||||
try {
|
||||
auto runInGameStage = [&](const char* stageName, auto&& fn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue