Skip to content

Conversation

sacr1ficez
Copy link
Contributor

  • Optimised code (replaced ipairs to range loops, localized some variables/tables and function; reduced function calls e.g guiGetScreenSize was called constantly, although it never changes without a reconnect)
  • Deleted unused (cBlack)/dupped (MAX_PRIORITY_SLOT) variables.
  • Introduced return early in some places to reduce nesting.

@Fernando-A-Rocha
Copy link
Contributor

Tested, scoreboard functions fine.

Copy link
Contributor

@jlillis jlillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, actually made a noticeable improvement.

@jlillis jlillis merged commit 3d3c592 into multitheftauto:master Jan 24, 2023
@sacr1ficez sacr1ficez deleted the scoreboard-further-improvements branch January 25, 2023 00:01
@patrikjuvonen patrikjuvonen added this to the 1.6.0 milestone Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants