Improve shadows for static walls
This commit is contained in:
+2
-2
@@ -96,8 +96,8 @@ doLoop setup window startWorld
|
||||
endSimTicks <- ticks
|
||||
performGC
|
||||
endLoopTicks <- ticks -- it might be better to use System.Clock (monotonic)
|
||||
let delay = max 0 (10 + fromIntegral startLoopTicks - fromIntegral endLoopTicks)
|
||||
threadDelay (delay * 1000)
|
||||
let delay = max 0 (20 + fromIntegral startLoopTicks - fromIntegral endLoopTicks)
|
||||
threadDelay (delay * 1000 )
|
||||
endTime <- ticks
|
||||
let newNewParams = newParams & idleTime +~ (endTime - endLoopTicks)
|
||||
& gcTime +~ (endLoopTicks - endSimTicks)
|
||||
|
||||
Reference in New Issue
Block a user