DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!

Home Page:http://dgle.dronprogs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double check weird code for calculating sleep time in core.

megaDRONe86 opened this issue · comments

const milliseconds sleep = (int)((_eInitFlags & EIF_FORCE_LIMIT_FPS) && ((_uiLastFPS > _updateInterval.count() && _uiLastFPS > 120) || _bPause)) * 8ms ...
_uiLastFPS > _updateInterval.count() - this compares values with much different meanings