prevents an infinite while loop by putting a cap of 4MS on occlusion queries.
Yikes. fatalityfix: need to create  a platformtimer for the reference.
Merge pull request #737 from Azaezel/queryStallPrevention

Query Stall Prevention