MegaGlest Forum
MegaGlest => Bug reports => Topic started by: Ishmaru on 31 August 2013, 00:47:23
-
Couldn't help but notice the lag when switching between tech trees. The amount of latency is far greater than previous versions of MG (below 3.8.0). At first I thought it was due to faction previews being loaded, but it appears not to be the case. lag is still the same for techtrees with or without faction previews or videos.
Have anyone else seen this issue?
I'm running on Laptop with Windows 7, Intel 2nd Gen Core i7 i7-2670QM / 2.2 GHz ( 3.1 GHz ) ( Quad-Core ), 8 gigs ram, + NVIDIA GeForce GT 540M
PS there is also no errors noted.
-
I think this is related to the new techtree translation. In the moment you selected the techtree its directory is scanned for translations. Its hard to say why this takes long for you :-( . Maybe slow harddisk or more lickely an antivirus programming checking too much.
-
I think this is related to the new techtree translation. In the moment you selected the techtree its directory is scanned for translations. Its hard to say why this takes long for you :-( . Maybe slow harddisk or more lickely an antivirus programming checking too much.
Why does all this scanning cause the game to freeze for a few seconds. Can't it scan without freezing it?
-
...Maybe slow harddisk...
From my experience I can say that it isn't a slow disk, unless it is defective.
Then looks like problem is related to windows and/ or ativirus.
-
why is is scanning translation done in custom game menu? wouldn't this be better to be loaded with the rest before map is loaded?
would it be possible to have a switch in options menu?
-
Megaglest tends to load everything when you click something. Either make it so it doesn't cause lag, or pre-load everything ahead of time? Both would be magical.
-
why is is scanning translation done in custom game menu?...
If it is there, then you can see translated name of the tech tree and of the factions.
In my opinion it is a very positive function.
Normally the switching between tech trees (e.g. for me and for many other people) is almost instant.
The only exceptions known to me it can actually take a long time is:
1. Switching between tech trees on headless server if you have locally more tech trees.
2. Switching to bugged tech tree.
-
then why does it take just as long if a tech tree doesn't have a translation?
-
That is very good question. It seems that there may be a problem with your hardware/software.
On the 3.8.0-beta1 and latest svn I have no problem to switch tech tree around 100 times within 15 seconds (and I haven't tried faster).
-
So this issue only seems to affect Windows users (at least not Linux users), and it may or may not affect all Windows users. We will need more feedback here to be able to tell whether this is a generic issue on Windows or one only affecting some Windows versions, and whether this issue does still occur with all anti virus and anti malware software disabled.
-
I'm running MG on an SSD and still getting lag. I'll record it.
https://www.youtube.com/watch?v=aaWu7Yr-5_E&feature=c4-overview&list=UUPXEhQHaJpuFN6jTAAUCvwA
-
I just want to note, the lag seems to be a one time issue (at least till i shut down my computer/restart).
-
I just want to note, the lag seems to be a one time issue (at least till i shut down my computer/restart).
This is a very strong indication that the virus scanner is involved. Here at work I have for example an anti-virus program called "Sophos" and its VERY slow with this when you read things the first time. This happens because the settings say that it should scan all read files for viruses and thats not really fast ...
and @archmage: I see no lag in your video, for me this looks amazingly fast! :P I know there is a small lag because loading the faction images takes some time.
-
I just tried it out. Loading the custom games screen took pretty long. Switching techtrees after that went at lightning speed.
I only have the default techtrees installed.
System: Win7 with Avira virus scanner & Outpost firewall
MG version: 3.8.0 beta 1
-
Quote from: Ishmaru on September 02, 2013, 23:12:23
I just want to note, the lag seems to be a one time issue (at least till i shut down my computer/restart).
This is a very strong indication that the virus scanner is involved. Here at work I have for example an anti-virus program called "Sophos" and its VERY slow with this when you read things the first time. This happens because the settings say that it should scan all read files for viruses and thats not really fast ...
Ishmaru check antivirus settings, you can usually tell the antivirus where not to scan.
and @archmage: I see no lag in your video, for me this looks amazingly fast! :P I know there is a small lag because loading the faction images takes some time.
That's because it's on an SSD, with no antivirus running. There's probably not anything faster running MG and there is still lag. :look:
-
Archmage: The video you uploaded doesn't show any lag switching techtrees. Are you saying you are still having lag switching techtrees but the video does not show it?
-
Archmage: The video you uploaded doesn't show any lag switching techtrees. Are you saying you are still having lag switching techtrees but the video does not show it?
I was kinda showing overall laggyness of it on a fast system. When I switch techtrees at first it's a bit laggy then it stops. I thought that was what ishmaru was experiencing, only a lot worse. I'll put it on an HDD and test it again. For now it looks like it's just anti-virus.
Why does loading stuff slow down the video rendering?
-
because its not done asynchron :D . Asynchronous loading was too difficult and not worth the effort in my opinion.
-
I think its the fact that we read the techtree lng file. For some reason thius seems slower on windows and I do not know why yet. Its either the scanner (glob) logic or the actual file I/O of VC++ vs GCC (or the OS response time). At some point I'll time it and find out how to fix this. Focus right now is stabilizing the out of synch issue.
-
Is this still slow? For me I don't notice a slowdown when i switch.
-
I still do, however it seems a bit better than when I first reported. I last tested this on Annex using rev 4645.
-
Maybe you get mixed up with the fact that the faction picture is loaded delayed and asynchronous ?
The faction switch itself should be fast.