Skip to content

on_draw / on_update inconsistency #2579

@einarf

Description

@einarf

https://discord.com/channels/458662222697070613/458662458198982676/1343259854336163861

https://discord.com/channels/458662222697070613/696054878593744946/1041610876718940181

Potential fix

  • Deprecate one of draw_rate or update_rate (remove in 4.0)
  • When draw_rate == update_rate, use a single timer for both

This means a single call to pyglet clock.schedule_interval() or equivalent. The issue is using two different pyglet event handlers, running two different intervals on the pyglet event loop. There is currently no guarantee exactly on update+draw is done per frame when scheduled_interval is caled twice.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions