{"id":3491,"date":"2026-04-10T23:37:30","date_gmt":"2026-04-10T23:37:30","guid":{"rendered":"https:\/\/verisunucu.net\/blog\/?p=3491"},"modified":"2026-04-10T23:37:30","modified_gmt":"2026-04-10T23:37:30","slug":"fivem-script-ve-sunucu-optimizasyonu-2026-performans-artirma-rehberi","status":"publish","type":"post","link":"https:\/\/verisunucu.net\/blog\/fivem-script-ve-sunucu-optimizasyonu-2026-performans-artirma-rehberi\/","title":{"rendered":"FiveM Script ve Sunucu Optimizasyonu &#8211; 2026 Performans Art\u0131rma Rehberi"},"content":{"rendered":"<p><!-- obsidian --><\/p>\n<p>FiveM d\u00fcnyas\u0131nda 2026 y\u0131l\u0131nday\u0131z ve art\u0131k oyuncular\u0131n beklentileri tavan yapm\u0131\u015f durumda. Eskiden 60 FPS l\u00fckst\u00fc, \u015fimdi ise stabilite ve d\u00fc\u015f\u00fck gecikme (network latency) her \u015fey demek. E\u011fer sunucun &#8220;MS&#8221; (resmon) canavar\u0131na d\u00f6n\u00fc\u015ft\u00fcyse veya oyuncular\u0131n &#8220;FPS d\u00fc\u015f\u00fcyor&#8221; diye yak\u0131n\u0131yorsa, gel bu i\u015fi k\u00f6kten \u00e7\u00f6zelim.<\/p>\n<p>\u0130\u015fte 2026 standartlar\u0131nda, sunucunu ya\u011f gibi ak\u0131tacak kapsaml\u0131 optimizasyon rehberi<\/p>\n<hr \/>\n<h2 data-heading=\"1. Kodlama D\u00fcnyas\u0131n\u0131n Alt\u0131n Kural\u0131 - Resmon De\u011ferleri\">1. Kodlama D\u00fcnyas\u0131n\u0131n Alt\u0131n Kural\u0131 &#8211; Resmon De\u011ferleri<\/h2>\n<p>Bir scriptin ne kadar kaynak t\u00fcketti\u011fini anlamak i\u00e7in F8 konsoluna <code>resmon 1<\/code> yazmak hala en b\u00fcy\u00fck silah\u0131m\u0131z. Ancak 2026\u2019da sadece &#8220;0.01 ms&#8221; g\u00f6rmek yetmiyor.<\/p>\n<ul>\n<li><strong>D\u00f6ng\u00fc (Loop) Y\u00f6netimi:<\/strong> <code>Wait(0)<\/code> kullanmaktan vazge\u00e7in. E\u011fer bir i\u015flem her karede (frame) ger\u00e7ekle\u015fmek zorunda de\u011filse, mesafeye g\u00f6re kontrol ekleyin.<\/li>\n<li><strong>\u00d6rnek:<\/strong> Oyuncu bir marketin yak\u0131n\u0131nda de\u011filse, o marketin &#8220;E bas&#8221; yaz\u0131s\u0131n\u0131 kontrol eden d\u00f6ng\u00fc 1-2 saniyede bir \u00e7al\u0131\u015fmal\u0131. Yakla\u015ft\u0131\u011f\u0131nda <code>Wait(0)<\/code> moduna ge\u00e7meli.<\/li>\n<\/ul>\n<hr \/>\n<h2 data-heading=\"2. Nesne Y\u00f6nelimli ve Modern API Kullan\u0131m\u0131\">2. Nesne Y\u00f6nelimli ve Modern API Kullan\u0131m\u0131<\/h2>\n<p>FiveM s\u00fcrekli geli\u015fiyor. Eski <code>Citizen.CreateThread<\/code> yerine modern JavaScript\/TypeScript veya optimize edilmi\u015f Lua d\u00f6ng\u00fclerini tercih etmelisiniz.<\/p>\n<ul>\n<li><strong>State Bags:<\/strong> Veri senkronizasyonu i\u00e7in s\u00fcrekli <code>TriggerServerEvent<\/code> kullanmak yerine <strong>State Bags<\/strong> kullan\u0131n. Bu, a\u011f trafi\u011fini (network overhead) inan\u0131lmaz derecede azalt\u0131r.<\/li>\n<li><strong>Entity Lockdown:<\/strong> Sunucuda gereksiz yere spawn olan ve silinmeyen &#8220;ped&#8221; veya &#8220;prop&#8221;lar RAM d\u00fc\u015fman\u0131d\u0131r. Scriptlerinizde <code>DeleteEntity()<\/code> fonksiyonunun \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan ve objelerin &#8220;mission entity&#8221; olarak i\u015faretlenip i\u015fi bitince temizlendi\u011finden emin olun.<\/li>\n<\/ul>\n<hr \/>\n<h2 data-heading=\"3. SQL Sorgular\u0131n\u0131 Optimize Edin (Databases)\">3. SQL Sorgular\u0131n\u0131 Optimize Edin (Databases)<\/h2>\n<p>Sunucudaki o anl\u0131k tak\u0131lmalar\u0131n (stuttering) %80&#8217;i genelde veritaban\u0131 kaynakl\u0131d\u0131r.<\/p>\n<ul>\n<li><strong>Async Her \u015eeydir:<\/strong> Veritaban\u0131 sorgular\u0131n\u0131 asla ana thread \u00fczerinde bekletmeyin (Sync sorgulardan ka\u00e7\u0131n\u0131n).<\/li>\n<li><strong>Gereksiz Veriden Ka\u00e7\u0131n:<\/strong> <code>SELECT *<\/code> yerine sadece ihtiyac\u0131n\u0131z olan s\u00fctunu \u00e7ekin. \u00d6rne\u011fin; sadece oyuncunun paras\u0131n\u0131 kontrol edecekseniz t\u00fcm envanter verisini \u00e7ekmek sunucuyu yorar.<\/li>\n<li><strong>OxMySQL Kullan\u0131m\u0131:<\/strong> 2026 itibariyle en stabil ve h\u0131zl\u0131 k\u00fct\u00fcphane hala OxMySQL t\u00fcrevleri. JSON verilerini veritaban\u0131nda saklarken dikkatli olun, b\u00fcy\u00fck verileri par\u00e7alamak sorgu h\u0131z\u0131n\u0131 art\u0131r\u0131r.<\/li>\n<\/ul>\n<hr \/>\n<h2 data-heading=\"4. MLO ve YMAP Temizli\u011fi\">4. MLO ve YMAP Temizli\u011fi<\/h2>\n<p>G\u00f6rsel \u015f\u00f6len g\u00fczeldir ama doku (texture) b\u00fct\u00e7esi a\u015f\u0131l\u0131rsa &#8220;Texture Loss&#8221; (yollar\u0131n yok olmas\u0131) ba\u015flar.<\/p>\n<ul>\n<li><strong>Texture Dictionary (.ytd) Optimizasyonu:<\/strong> Bir binan\u0131n i\u00e7indeki k\u00fc\u00e7\u00fcc\u00fck bir tablo i\u00e7in 4K texture kullanmaya gerek yok. Resizer ara\u00e7lar\u0131yla dokular\u0131 512px veya 1024px seviyesine \u00e7ekin.<\/li>\n<li><strong>LOD Ayarlar\u0131:<\/strong> Uzaktayken g\u00f6r\u00fcnmesine gerek olmayan objelerin LOD (Level of Detail) mesafelerini k\u0131s\u0131n.<\/li>\n<\/ul>\n<hr \/>\n<h2 data-heading=\"5. Network ve OneSync Ayarlar\u0131\">5. Network ve OneSync Ayarlar\u0131<\/h2>\n<p>E\u011fer 64 ki\u015fiden fazla oyuncu hedefliyorsan\u0131z <strong>OneSync Infinity<\/strong> olmazsa olmaz.<\/p>\n<ul>\n<li><strong>Server Artifacts:<\/strong> Sunucu dosyalar\u0131n\u0131z\u0131 (artifacts) her zaman en son stabil s\u00fcr\u00fcme g\u00fcncelleyin. FXServer ekibi her hafta performans iyile\u015ftirmeleri yay\u0131nl\u0131yor.<\/li>\n<li><strong>Bucket Sistemi:<\/strong> E\u011fer bir illegal b\u00f6lge veya \u00e7ok kalabal\u0131k bir i\u00e7 mekan (interior) varsa, oyuncular\u0131 farkl\u0131 <strong>Routing Buckets<\/strong> (y\u00f6nlendirme kovalar\u0131) i\u00e7ine alarak a\u011f y\u00fck\u00fcn\u00fc da\u011f\u0131tabilirsiniz.<\/li>\n<\/ul>\n<hr \/>\n<h2 data-heading=\"6. Oyuncu Taraf\u0131 (Client-Side) \u0130\u00e7in \u0130pu\u00e7lar\u0131\">6. Oyuncu Taraf\u0131 (Client-Side) \u0130\u00e7in \u0130pu\u00e7lar\u0131<\/h2>\n<p>Sadece script yetmez, oyuncuya da yard\u0131mc\u0131 olmal\u0131s\u0131n\u0131z:<\/p>\n<table>\n<thead>\n<tr>\n<th>Y\u00f6ntem<\/th>\n<th>A\u00e7\u0131klama<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Asset Streaming<\/strong><\/td>\n<td>Sunucuya giri\u015fte y\u00fcklenen dosyalar\u0131n boyutunu (\u00f6zellikle ara\u00e7lar\u0131n) 30-40 MB alt\u0131nda tutun.<\/td>\n<\/tr>\n<tr>\n<td><strong>NUI Optimizasyonu<\/strong><\/td>\n<td>UI (Aray\u00fcz) taraf\u0131nda Vue.js veya React kullan\u0131yorsan\u0131z, kapal\u0131yken bile arka planda i\u015flem yapmad\u0131\u011f\u0131ndan emin olun.<\/td>\n<\/tr>\n<tr>\n<td><strong>Gereksiz Scriptleri Silin<\/strong><\/td>\n<td>&#8220;Belki laz\u0131m olur&#8221; dedi\u011finiz her script, i\u015flemcinin \u00fczerine binen ekstra bir y\u00fckt\u00fcr.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 data-heading=\"Sonu\u00e7\">Sonu\u00e7<\/h3>\n<p>2026&#8217;da iyi bir FiveM sunucusu, en fazla scripti olan de\u011fil, <strong>en temiz koda sahip olan<\/strong> sunucudur. Scriptlerinizi yazarken &#8220;Bu i\u015flem saniyede ka\u00e7 kez \u00e7al\u0131\u015f\u0131yor?&#8221; sorusunu kendinize sormay\u0131 unutmay\u0131n.<\/p>\n<figure id=\"attachment_3492\" aria-describedby=\"caption-attachment-3492\" style=\"width: 781px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3492\" src=\"https:\/\/verisunucu.net\/blog\/wp-content\/uploads\/2026\/04\/1-3.jpg\" alt=\"FiveM Script ve Sunucu Optimizasyonu 2026 - Performans Art\u0131rma Rehberi - Verisunucu.net\" width=\"781\" height=\"442\" srcset=\"https:\/\/verisunucu.net\/blog\/wp-content\/uploads\/2026\/04\/1-3.jpg 781w, https:\/\/verisunucu.net\/blog\/wp-content\/uploads\/2026\/04\/1-3-300x170.jpg 300w, https:\/\/verisunucu.net\/blog\/wp-content\/uploads\/2026\/04\/1-3-768x435.jpg 768w, https:\/\/verisunucu.net\/blog\/wp-content\/uploads\/2026\/04\/1-3-400x226.jpg 400w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><figcaption id=\"caption-attachment-3492\" class=\"wp-caption-text\">FiveM Script ve Sunucu Optimizasyonu 2026 &#8211; Performans Art\u0131rma Rehberi &#8211; Verisunucu.net<\/figcaption><\/figure>\n<hr \/>\n<p><strong>Verisunucu.net<\/strong> hepinize iyi oyunlar diler.<\/p>\n","protected":false},"excerpt":{"rendered":"FiveM d\u00fcnyas\u0131nda 2026 y\u0131l\u0131nday\u0131z ve art\u0131k oyuncular\u0131n beklentileri tavan yapm\u0131\u015f durumda. Eskiden 60 FPS l\u00fckst\u00fc, \u015fimdi ise stabilite&hellip;","protected":false},"author":2,"featured_media":3493,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[17,19],"tags":[],"class_list":{"0":"post-3491","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-oyun","8":"category-sunucu","9":"cs-entry"},"_links":{"self":[{"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/posts\/3491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/comments?post=3491"}],"version-history":[{"count":2,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/posts\/3491\/revisions"}],"predecessor-version":[{"id":3495,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/posts\/3491\/revisions\/3495"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/media\/3493"}],"wp:attachment":[{"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/media?parent=3491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/categories?post=3491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/verisunucu.net\/blog\/wp-json\/wp\/v2\/tags?post=3491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}