Thread: [Solved] Optimized Plugin?
View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-13-2018 , 20:22   Re: Optimized Plugin?
Reply With Quote #9

Quote:
Originally Posted by ddhoward View Post
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.
__________________
Peace-Maker is offline