mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ComponentPeer::VBlankListener: Add timestamp parameter to the vblank callback
This commit is contained in:
parent
4bc2952419
commit
d9a3efd3cb
11 changed files with 88 additions and 33 deletions
|
|
@ -1,5 +1,29 @@
|
|||
# JUCE breaking changes
|
||||
|
||||
# develop
|
||||
|
||||
## Change
|
||||
|
||||
The signature of VBlankListener::onVBlank() was changed to
|
||||
VBlankListener::onVBlank (double), with the addition of a timestamp parameter
|
||||
that corresponds to the time at which the next frame will be displayed.
|
||||
|
||||
**Possible Issues**
|
||||
|
||||
Code that overrides VBlankListener::onVBlank() will fail to compile.
|
||||
|
||||
**Workaround**
|
||||
|
||||
Add a double parameter to the function overriding VBlankListener::onVBlank().
|
||||
The behaviour will be unchanged if this new parameter is then ignored.
|
||||
|
||||
**Rationale**
|
||||
|
||||
A timestamp parameter has been missing from the VBlank callback since its
|
||||
addition. The new parameter allows all VBlankListeners to synchronise the
|
||||
content of their draw calls to the same frame timestamp.
|
||||
|
||||
|
||||
# Version 8.0.2
|
||||
|
||||
## Change
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue