Latest topics
» Omg this server with the website is still alive :oby VK.Angel.OfDeath Today at 5:35 pm
» [Solved] Help & Support
by VK.Angel.OfDeath Thu Oct 24, 2024 7:02 pm
» [Solved] reset password
by VK.Angel.OfDeath Thu Oct 24, 2024 6:58 pm
» [Accepted] Report - Abanoub^
by VK.Angel.OfDeath Thu Oct 24, 2024 6:42 pm
» [Accepted] Unban appeal - hasan
by D4rKR420R Fri Oct 18, 2024 10:06 pm
» [Solved] Report - BelondiOscar
by SJIsNotHere Fri Oct 11, 2024 1:21 pm
» [Solved] Geogeo - Stats Transfer
by SJIsNotHere Tue Oct 01, 2024 5:50 pm
» [Solved] Kindly Re-solve it
by SJIsNotHere Wed Sep 25, 2024 9:55 am
» [Solved] Geogeo - Stats Transfer
by SJIsNotHere Wed Sep 25, 2024 8:10 am
» Matija_Todorovic returns after 3 years of absence
by UmaR Sun Sep 01, 2024 5:55 am
» [Solved] Signature^-Stats transfer
by UmaR Wed Aug 21, 2024 2:38 pm
» [Denied] Admin Application - MK14
by UmaR Fri Aug 16, 2024 8:44 pm
» [Solved] Reset my password pls
by VK.Angel.OfDeath Wed Aug 14, 2024 6:44 am
» Old member back from the dead
by Neptune Mon Aug 12, 2024 9:39 pm
» Vice War X Gameplay | BadDiamondArtz VCMP
by UmaR Thu Jul 18, 2024 10:00 am
» [Solved] RESET PASSWORD
by UmaR Fri Jul 12, 2024 3:29 pm
» [Solved]Transfer Application - Hazard
by SJIsNotHere Wed Jul 03, 2024 10:56 am
» DARKRAZOR RESPONDE MI MENSAJE!!!
by Veterano789 Wed Jul 03, 2024 1:59 am
» Vice War X: The Starfish Showdown
by =FF=B00M_B00M^ Thu Jun 27, 2024 6:17 pm
» Fatal Force - F2
by Mr.Moon Wed Jun 26, 2024 7:18 am
» Stat Transfer Application - SuFyastiC
by D4rKR420R Tue Jun 04, 2024 10:07 pm
» [Accepted] Unban Appeal
by VK.Angel.OfDeath Sun Mar 31, 2024 8:29 am
» [Solved] Password Reset
by VK.Angel.OfDeath Sat Mar 23, 2024 9:32 pm
» Ramadan Mubarak in Advance
by Shafin Sat Mar 23, 2024 1:52 pm
» Illegal Immigration | Old Memories | 2017
by ilemius Fri Feb 09, 2024 5:25 pm
» VKs and VCMP Previews
by SJIsNotHere Sat Jan 20, 2024 1:51 pm
» The Resurgence 4th Year of Anniversary!
by Ninja Tue Jan 16, 2024 10:30 am
» [Solved]Stats Transfer application - Shado[W]^
by SJIsNotHere Mon Nov 27, 2023 5:06 pm
» Hi to all my good friends
by VK.Angel.OfDeath Sat Nov 18, 2023 9:04 am
» [Closed] Admin Application - F2.Ninja
by VK.Angel.OfDeath Sat Nov 18, 2023 8:49 am
Top posters
ЧК. (8555) | ||||
VK.Angel.OfDeath (6467) | ||||
=SdS=KrlozZ... (6433) | ||||
D4rKR420R (5473) | ||||
=KF=Thunder^ (5405) | ||||
Pavonis (5197) | ||||
SJIsNotHere (4432) | ||||
Emma (4261) | ||||
Vipe[R] (3756) | ||||
47. (3705) |
Statistics
We have 1978 registered usersThe newest registered user is kodaklyve
Our users have posted a total of 217908 messages in 16831 subjects
Most Viewed Topics
The cleaning of the script has begun!!
5 posters
Page 1 of 1
The cleaning of the script has begun!!
Do you guys remember the problem about the lag? I explained that the problem was that the server is like a worker it has a limit on how much it can do in a certain time. Our server couldn't process the timer code that loops every sec, because it couldn't read through it in 1 sec. That's why I told you guys that I would start cleaning up the 10 thousand lines of code so that the server will have less work per sec and the server wont lag. This is possible by telling the server to skip a certain part of code if something else is already true, For example: If the server checks for a HP hacker, speed hacker or armor hacker. It doesn't have to check them all, so you can program the server to skip the rest of the code if the player is a HP hacker for example.
I have replaced 4 for loops with only one. In the 5 sec timer, which will make the code run a lot faster. I have also replaced variables and things that took up memory for no reason. I will continue cleaning up the script during the winter break and of course finish the DM script + starting the RP script.
I have replaced 4 for loops with only one. In the 5 sec timer, which will make the code run a lot faster. I have also replaced variables and things that took up memory for no reason. I will continue cleaning up the script during the winter break and of course finish the DM script + starting the RP script.
_______________________________________
VK.Angel.OfDeath- Server Owner & Forum Admin
- Chuck NorrisedYou been norrised.
- Posts : 6467
Points : 9324
Reputation : 127
Join date : 2012-10-28
Age : 30
Location : Sweden
Razor- Epic Member
- Gender :
Posts : 513
Points : 667
Reputation : 19
Join date : 2012-10-20
Age : 26
Re: The cleaning of the script has begun!!
After the first cleanup I changed the 2.5 timer back to a 1 sec timer so that script like !heal and !getcar doesn't take 40 sec. There was almost no warp at all when I tested it with razor. When I'm complete done cleaning it up, there will probably not be any lag at all .
_______________________________________
VK.Angel.OfDeath- Server Owner & Forum Admin
- Chuck NorrisedYou been norrised.
- Posts : 6467
Points : 9324
Reputation : 127
Join date : 2012-10-28
Age : 30
Location : Sweden
Izaki- Veteran Member
- Gender :
Posts : 319
Points : 333
Reputation : 15
Join date : 2012-10-23
Age : 27
S@M- Veteran Member
- Gender :
Posts : 248
Points : 253
Reputation : 12
Join date : 2013-04-03
Age : 24
Location : Nepal
SuFyastiC- Ultra Legendary
- Gender :
Posts : 2125
Points : 2790
Reputation : 20
Join date : 2013-07-04
Age : 27
Location : Karachi,Pakistan
Similar topics
» [Solved] Script Bug Report - HP detection script
» Treasure hunting clues! (ENDED)
» The Library Part 2 has begun! [HINT 1 available]
» Dunno what to script
» An update regarding the script
» Treasure hunting clues! (ENDED)
» The Library Part 2 has begun! [HINT 1 available]
» Dunno what to script
» An update regarding the script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum