Skip to content

Instantly share code, notes, and snippets.

View nnsdev's full-sized avatar
🏠
Working from home

nns nnsdev

🏠
Working from home
  • Germany
  • 23:42 (UTC +02:00)
  • X @nnsdev
View GitHub Profile
@nnsdev
nnsdev / _improve_fivem_resources.md
Last active January 14, 2024 19:53
How to improve FiveM resource performance

How to fix resource performance

Showing by example of "disc-base" exempts

This is an example of a resource called "disc-base", I have only taken parts of it and removed the mentions of ESX, because I am running this on an empty server. The part we are looking at here especially is the marker drawing. This is also an outdated version of this resource before they applied performance improvements, but we are also going to go deeper than their changes.

Base of this tutorial: https://github.com/DiscworldZA/gta-resources/blob/54a2aaf7080286c8d49bbd7b1978b6cc430ec755/disc-base/client/markers.lua (client.lua here)

Assessment

@nnsdev
nnsdev / Default (Windows).sublime-keymap
Last active July 10, 2017 16:40
my sublime snippets (Thanks to @adamwathan for a lot of those)
[
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["f6"], "command": "expand_fqcn" },
{ "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} },
{ "keys": ["f5"], "command": "find_use" },
{ "keys": ["f4"], "command": "import_namespace" },
{ "keys": ["shift+f12"], "command": "goto_definition_scope" }
]