Change your globals to all locals and see it fly. When you use Global you explicitly are forcing the variables to be stored in memory rather than be optimized into local registers.
little Benchmark
BlitzMax Forums/BlitzMax Programming/little BenchmarkThe 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.