mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 12:45:41 +00:00
parent
bcc2405002
commit
7f64945079
|
@ -469,7 +469,7 @@ namespace OpenTK
|
||||||
|
|
||||||
bool RaiseUpdateFrame(double time)
|
bool RaiseUpdateFrame(double time)
|
||||||
{
|
{
|
||||||
if (time >= TargetUpdatePeriod)
|
if (time > 0 && time >= TargetUpdatePeriod)
|
||||||
{
|
{
|
||||||
update_args.Time = time;
|
update_args.Time = time;
|
||||||
OnUpdateFrameInternal(update_args);
|
OnUpdateFrameInternal(update_args);
|
||||||
|
@ -481,7 +481,7 @@ namespace OpenTK
|
||||||
|
|
||||||
bool RaiseRenderFrame(double time)
|
bool RaiseRenderFrame(double time)
|
||||||
{
|
{
|
||||||
if (time >= TargetRenderPeriod)
|
if (time > 0 && time >= TargetRenderPeriod)
|
||||||
{
|
{
|
||||||
render_args.Time = time;
|
render_args.Time = time;
|
||||||
OnRenderFrameInternal(render_args);
|
OnRenderFrameInternal(render_args);
|
||||||
|
|
Loading…
Reference in a new issue