Thread
: [Solved]
Optimized Plugin?
View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
06-13-2018 , 20:22 Re: Optimized Plugin?
#
9
Quote:
Originally Posted by
ddhoward
https://forums.alliedmods.net/showth...63#post2316163
We're still talking about little optimizations here and switching to C++ code by calling the ConVar.IntValue native instead of just reading a variable in the vm memory is technically still more expensive. Native calls are pretty fast though and since the native is just returning a cached value this isn't really worth the effort. You just need to make a difference between "ConVar" (the sourcepawn methodmap) caching its value and the c++ structure backing it up in the SDK. sourcepawn isn't caching the value.
__________________
SourcePawn .smx disassembler in your browser
Detour any function from your plugin:
DHooks 2 + detours
Tab-autocompletion in SRCDS command line
Bot Mimic
|
SM:CTF
|
SM:Conquest
|
SM:Error Mail
|
Websocket
|
PostgreSQL
Retrogames:
Connect4
|
Tetris
|
Snake
|
Pong
|
Blackjack
Peace-Maker
View Public Profile
Send a private message to Peace-Maker
Visit Peace-Maker's homepage!
Find More Posts by Peace-Maker