Login
Sign Up


You are using the mobile version of the forum, some features have been disabled to have it responsive.
Limelight Reunion 2024 - v4b1Limelight Discord
Ares Defence Services Discord
Limelight Reunion 2024 - v4b1Limelight DiscordAres Defence Services Discord

receiptDevelopment Blog:

Development Contributor Workflow

receiptHR Blog:

What *are* they doing over there?

receiptTeacher Blog:

Insight into the Teacher Team

receiptDevelopment Blog:

Infrastructure Upgrade 11/2019

receiptDevelopment Blog:

how suggestions???

receiptDevelopment Blog:

Planning for the future.


This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Dev Blog #2 - Optimisation
Doctor Internet radio_button_checked
Management, Developer, Administrator, Business Adviser, DPO, Security
Core Manager
Posts: 12,549
Threads: 1,763
Likes Given: 422
Likes Recieved: 3471 in 1669 posts
Joined: Aug 2015
Reputation: 35
#1
Feb 16, 2018, 09:25 PM
The second dev blog. I can't promise a blog as riviting and easy to understand as @Noble's Last Dev Blog, though I'll try.

Optimisation, it's a tricky topic.
What are we doing and where are we going?

Optimisation is a complaint we get a lot of complaints about, from the community, from staff and from me; yet fixing it isn't as simple as flicking a switch.

We've put a lot of planning into ensuring that the optimisation we do is actually worth it, and improves things for you, rather than just chucking code into the window, and praying for an improvement.

[Image: dfd887b77e07dfdfbcea03ae4afdd3f7.png]
Initial planning - We're still only on Stage 2.

[Image: unknown.png]
Collected Data on Optimisation

Stage 1 - Data Collection
We've done a lot of data collection on the baseline, as you can see. We can move on from that, thankfully. There'll be more to do in time, but for now we can leave it.

Stage 2 - Networking
At higher populations, FPS can be bad, but normally it's not the worst. At higher populations, pings start shooting through the roof. We've already done some work with network optimisation in Revision 5368 but we still have more work to do. However, we've got pings down to an acceptable level, so we can focus more on clientside issues.

How to Optimise
In general, resolving the issues we have is two-fold.

Firstly, we can reduce what we do. For example, instead of using heavy functions, we can use lighter approximations (these things don't need to be perfect, only good enough). This reduces the amount of work either you or the server have to do.

Secondly, we can reduce the number of times we do things. A light function becomes heavy if you use it 50000000 times a second. I can't really go into more detail, because it's always dependent on the individual bit of code being worked on. However, most of the times we can try and cut out useless or redundant loops, try not looping etc.

Why was this never done before?
It's difficult to say, because there's so many reasons.

Firstly, the history of CityRP has a lot to do with it.
[Image: unknown.png]

We're so old, there's a lot of older bits of code which need to be remover, but haven't been yet.

Secondly, we've had some poorer development practices in the past. Most of our developers haven't come from software development backgrounds. For example, @Faustie is self-taught. This has led to things sometimes being suboptimial. However, we are working to bring everyone up to speed, to ensure that future code is optimised, and as I said before, we're going over and rectifying the past now.


That's optimisation, that's what we've done and what's happening.
For Data Protection Queries, please email info@limelightgaming.net.
For Business, Contributor or Development queries, please PM me.
For Appeals, please post in the relevant subforum.
For Security Information, your best bet is to speak to Burnett.
richie radio_button_checked
i am richie
Membership
Posts: 640
Threads: 52
Likes Given: 699
Likes Recieved: 276 in 182 posts
Joined: Oct 2016
Reputation: 6
#2
Feb 17, 2018, 03:41 PM
ok yes good
richie x
Kvatch radio_button_checked
Member
Membership
Posts: 782
Threads: 87
Likes Given: 791
Likes Recieved: 517 in 267 posts
Joined: Aug 2015
Reputation: 8
#3
Feb 19, 2018, 02:47 PM
[Image: giphy.gif]

Forum Rep  |  Steam Profile
Lewwings radio_button_checked
User
Registered User
Posts: 261
Threads: 1
Likes Given: 717
Likes Recieved: 241 in 152 posts
Joined: Sep 2017
Reputation: 3
#4
Feb 20, 2018, 10:19 PM
Good luck with optimisation then!

@Doctor Internet, Mavis & The Doctor are the SAME person, lol.
Thank you
Lewwings
Haamster radio_button_checked
Member
Membership
Posts: 281
Threads: 31
Likes Given: 299
Likes Recieved: 258 in 109 posts
Joined: Nov 2016
Reputation: 3
#5
Feb 25, 2018, 11:11 PM
This is what I love to see, keep up the great work!




Users browsing this thread: 1 Guest(s)