MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
355 stars 90 forks source link

Current windows version is unplayable slow as client #86

Closed titiger closed 8 years ago

titiger commented 8 years ago

Current windows client works in single-player and as server without problems. But if is a client the game is unplayable slow and choppy, This happens in Internet games and in local LAN games. I tested Linux as server( headlesss and non headless) and windows as client.

Direct form the start you see that units don't move fluid. Just command some workers/fighters to walk across the screen to see the problem. This gets worse if there are more units in game, Evn simple mouse pointer movement is choppy. To me it looks like thread synchronisation trouble. This problem is related to 32 and 64 bit windows client.

tomreyn commented 8 years ago

I can confirm this. Using Windows 10 64-bit, I tried several combinations:

All of these tests were carried out with network throttling disabled (i.e. the registry update was in place - I verified the registry setting using regedit, and there was no more warning on windwos throttling on MG's command line output).

On all games but the ones where I was on 3.12-dev as a network game client, UpdateFPS was around 120-140. Only in this case it kept switching back and forth between 39 and 55 constantly, with no action taking place on screen. RenderFPS was always at 40 in all tests / configurations.

Probably unrelated, but for completeness: During at least one of the tests where the game lagged, I also got this output on console: ===> IRC Could not run the session: Illegal operation for this state run_result = 3

titiger commented 8 years ago

fixed with 9e0d2271729634381c97a5c526c536ef08f7ffe7 Thanks softcoder !!!