A quick optimization question

Blitz3D Forums/Blitz3D Programming/A quick optimization question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Is this code:

g_update = 1 - g_update
Select g_update
Case 0 : ;Do nothing
Case 1 : Update()
End Select

faster than this code:

g_update = 1 - g_update
If (g_update=True) then Update()

Regards,

RV

www.OctaneDigitalStudios.com