UGX-Mods

Call of Duty 5: World at War => Help Desk => Topic started by: GalaxyYT on April 11, 2019, 12:02:36 am

Title: Custom map huge lag spikes and freezing
Post by: GalaxyYT on April 11, 2019, 12:02:36 am
Whenever I test my map, there is huge lag spikes and the game basically freezes for 3 seconds. It happens about 5 seconds after the game loads, after getting certain items from the box, and at random points in the game as well. When other people are in the game they simply get a connection interrupted. I also tried letting a friend host and now HE is the one with the freezes and I get a connection interrupted. I really don't know what could be causing it. I don't get these freezes on any other custom map, nor can I find any info on this.
Title: Re: Custom map huge lag spikes and freezing
Post by: gympie6 on April 11, 2019, 09:12:34 pm
Whenever I test my map, there is huge lag spikes and the game basically freezes for 3 seconds. It happens about 5 seconds after the game loads, after getting certain items from the box, and at random points in the game as well. When other people are in the game they simply get a connection interrupted. I also tried letting a friend host and now HE is the one with the freezes and I get a connection interrupted. I really don't know what could be causing it. I don't get these freezes on any other custom map, nor can I find any info on this.
Which map? 
Title: Re: Custom map huge lag spikes and freezing
Post by: GalaxyYT on April 11, 2019, 11:06:57 pm
Which map?
 It's a map I'm working on atm, and I haven't uploaded it yet. I also noticed that if I have my fps limit set to 1000, when the game freezes, the number BESIDE the fps counter (cg_drawfps 1) goes to 2147483647, and goes back to normal. My game runs perfectly normal otherwise.
Title: Re: Custom map huge lag spikes and freezing
Post by: gympie6 on April 12, 2019, 04:50:26 pm
It's a map I'm working on atm, and I haven't uploaded it yet. I also noticed that if I have my fps limit set to 1000, when the game freezes, the number BESIDE the fps counter (cg_drawfps 1) goes to 2147483647, and goes back to normal. My game runs perfectly normal otherwise.
It's very difficult to reproduce the issues causing this huge lag spike but I can give you some tips how to maybe solve these issues:

1. Use portals (Look around on the forum or tutorials on youtube).
2. If you are programming and use loops you should atleast use a "wait" function. Without this it goes too fast and the engine will break out of the loop.
Title: Re: Custom map huge lag spikes and freezing
Post by: codmoddd1234 on April 29, 2019, 01:56:48 am

Look in the console when it freezes for anything important.
Check your mapname.gsc and see if you added anything twice by mistake.
If it happens when you get items and when the game starts maybe your player quotes are not setup correctly.