Thread
:
[TUT/Snippet] Doing timed stuff without CreateTimers
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
02-12-2015 , 16:08 Re: [TUT/Snippet] Doing timed stuff without CreateTimers
#
8
Quote:
Originally Posted by
Chdata
https://forums.alliedmods.net/showpo...09&postcount=3
Comparatively a couple of bools shouldn't be bad. Unless you have like hundreds of bools. I try to use switch cases... according to Psychonic or Asherkin they don't calculate every comparison for every switch or something, just jump to whichever case.
It's pretty common for a compiler to generate a
jump table
for a switch instead of treating it like an if / else if / else block.
__________________
Not currently working on SourceMod plugin development.
Powerlord
View Public Profile
Find More Posts by Powerlord