This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pmpp
Recipients pmpp
Date 2018-11-14.08:08:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542182908.62.0.788709270274.issue35243@psf.upfronthosting.co.za>
In-reply-to
Content
unlike https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame which is fires about each 1/60 second : the callback for gui via PyOS_InputHook is as long as 0.1 second.

https://github.com/python/cpython/blob/8e0b05e2f4b9fd703cbe1ae8d058852ef3781f44/Modules/readline.c#L1192

using repl asyncronously with such a timer is a bad experience when using async opengl based gui : asyncio loop steps should be able to be served at vsync speed which is not actually possible because of hardcoded value.

0.008 seconds would not be so bad, best would be plan next call to hit T+ frametime ( with a default to 0.016 ) each pass inside the loop.

a use case for python would be panda3d and its various gui.

real life example in other mainstream language : the javascript repl in the browser console.
History
Date User Action Args
2018-11-14 08:08:28pmppsetrecipients: + pmpp
2018-11-14 08:08:28pmppsetmessageid: <1542182908.62.0.788709270274.issue35243@psf.upfronthosting.co.za>
2018-11-14 08:08:28pmpplinkissue35243 messages
2018-11-14 08:08:28pmppcreate