Posted: Fri May 11, 2018 3:20 am Post subject: lag needs to be fixed
I know scripts can cause but UI lag is extremely frustrating. I shall be waiting for around 2 minutes for a menu to close. Is there anyway to fix this? I dont want ui to lag at all. _________________
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
Posted: Fri May 11, 2018 3:37 am Post subject:
redesign the scripts.
e.g use threads instead of timers where possible
don't spawn hundreds of timers
if checking for keystates cache the state in a table if the same key is checked multiple times
if there are hundreds or more options only draw/create the visible ones and reuse existing objects when scrolling (scrollboxes may sound good, but there is a reason CE itself does not use them much)
instead of using gui objects, try rendering everything to a paintbox and handle keypresses/mouse events yourself _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum