Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readline timeout too long for async gfx use #79424

Open
pmp-p mannequin opened this issue Nov 14, 2018 · 1 comment
Open

readline timeout too long for async gfx use #79424

pmp-p mannequin opened this issue Nov 14, 2018 · 1 comment
Labels
3.10 only security fixes 3.11 only security fixes 3.12 bugs and security fixes extension-modules C modules in the Modules dir performance Performance or resource usage

Comments

@pmp-p
Copy link
Mannequin

pmp-p mannequin commented Nov 14, 2018

BPO 35243
Nosy @Yhg1s, @pmp-p

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2018-11-14.08:08:28.573>
labels = ['extension-modules', '3.8', '3.9', '3.10', 'performance']
title = 'readline timeout too long for async gfx use'
updated_at = <Date 2020-09-14.23:11:05.822>
user = 'https://github.com/pmp-p'

bugs.python.org fields:

activity = <Date 2020-09-14.23:11:05.822>
actor = 'pmpp'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2018-11-14.08:08:28.573>
creator = 'pmpp'
dependencies = []
files = []
hgrepos = []
issue_num = 35243
keywords = []
message_count = 1.0
messages = ['329891']
nosy_count = 2.0
nosy_names = ['twouters', 'pmpp']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'performance'
url = 'https://bugs.python.org/issue35243'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

@pmp-p
Copy link
Mannequin Author

pmp-p mannequin commented Nov 14, 2018

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.

{ struct timeval timeout = {0, 100000}; /* 0.1 seconds */

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.

@pmp-p pmp-p mannequin added 3.7 (EOL) end of life type-feature A feature request or enhancement extension-modules C modules in the Modules dir labels Nov 14, 2018
@pmp-p pmp-p mannequin added 3.8 (EOL) end of life and removed 3.7 (EOL) end of life labels Dec 4, 2018
@pmp-p pmp-p mannequin added performance Performance or resource usage and removed type-feature A feature request or enhancement labels Sep 23, 2019
@pmp-p pmp-p mannequin added 3.9 only security fixes 3.10 only security fixes labels Sep 14, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@iritkatriel iritkatriel added 3.11 only security fixes 3.12 bugs and security fixes and removed 3.9 only security fixes 3.8 (EOL) end of life labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes 3.11 only security fixes 3.12 bugs and security fixes extension-modules C modules in the Modules dir performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant