Skip to content

Commit

Permalink
Fix windows lag
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Dec 27, 2014
1 parent d2db1a9 commit 877ef2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/client.cpp
Expand Up @@ -157,6 +157,10 @@ void * MeshUpdateThread::Thread()

m_queue_in.m_process.erase(q->m_blockpos);

#if _MSC_VER
sleep_ms(1); // dont overflow gpu, fix lag and spikes on drawtime
#endif

#ifdef NDEBUG
} catch (BaseException &e) {
errorstream<<"MeshUpdateThread: exception: "<<e.what()<<std::endl;
Expand Down
4 changes: 0 additions & 4 deletions src/clientmap.cpp
Expand Up @@ -267,11 +267,7 @@ void ClientMap::updateDrawList(video::IVideoDriver* driver, float dtime, unsigne
}
}

#if _MSC_VER
const int maxq = 100;
#else
const int maxq = 1000;
#endif

// No occlusion culling when free_move is on and camera is
// inside ground
Expand Down

0 comments on commit 877ef2f

Please sign in to comment.