SDL_PollEvent took too long

Post Reply
User avatar
Wuzzy
Member
Posts: 5102
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

SDL_PollEvent took too long

by Wuzzy » Post

My logs often contain many warnings of the form:
WARNING[Main]: Irrlicht: SDLPollEvent took too long: 100ms
Sounds like a performance issue. Any idea on how to fix this?

This message seems to appear more often when I aggressively resize the Luanti window when formspecs are open.

User avatar
Blockhead
Moderator
Posts: 2984
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: SDL_PollEvent took too long

by Blockhead » Post

Wuzzy wrote:
Wed Feb 04, 2026 12:11
This message seems to appear more often when I aggressively resize the Luanti window when formspecs are open.
Like, make the window really squished, or send a million resize events? Because the fix for each of those would be different
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Wuzzy
Member
Posts: 5102
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: SDL_PollEvent took too long

by Wuzzy » Post

Yes. Making the window squsied and resizing. But it's definitely less than a "million resize events".

The warning also occassional appears during normal play.

User avatar
nazalassa
Member
Posts: 82
Joined: Sun May 26, 2024 14:50
In-game: Nazalassa
Contact:

Re: SDL_PollEvent took too long

by nazalassa » Post

X11-specific maybe? I reliably get this issue as well when doing any window management operations, likely because my window manager grabs the X11 server when doing that.
Life is like a multitasking OS: you know you'll eventually get back to anything, but you don't know when.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests