06-26-2013, 07:01 AM
Reading...
"It turns out my lag ussues were caused by a runaway HUD window updating every frame."......
Basically, You can find what I'm describing in the hud script for my Lycan ABS
In the main hud window...
1) I Have a master update routine that:
a) First does a check routine that only performs updates after x frames ( if Graphics.frame_count % 30 != 0)
b) Same check routine sees if the current HP is the same as the last checked hp
c) Same check routine sees if the current SP is the same as the .... Oh, you get the idea)
2) ONLY if the check routine says something is different.... refresh and update the rest of the window with the new data
"It turns out my lag ussues were caused by a runaway HUD window updating every frame."......
Basically, You can find what I'm describing in the hud script for my Lycan ABS
In the main hud window...
1) I Have a master update routine that:
a) First does a check routine that only performs updates after x frames ( if Graphics.frame_count % 30 != 0)
b) Same check routine sees if the current HP is the same as the last checked hp
c) Same check routine sees if the current SP is the same as the .... Oh, you get the idea)
2) ONLY if the check routine says something is different.... refresh and update the rest of the window with the new data