Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Double check weird code for calculating sleep time in core. #228

Open
megaDRONe86 opened this issue Apr 21, 2016 · 0 comments
Open

Double check weird code for calculating sleep time in core. #228

megaDRONe86 opened this issue Apr 21, 2016 · 0 comments
Assignees
Labels

Comments

@megaDRONe86
Copy link
Member

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

@megaDRONe86 megaDRONe86 self-assigned this Apr 21, 2016
@megaDRONe86 megaDRONe86 added this to the Version 2:0.3.5 milestone Apr 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant