[Ohrrpgce] [ohrrpgce/ohrrpgce] Mac: Custom getting stuck when spawning a program after changing window size (#23)

Ralph Versteegen notifications at github.com
Tue Aug 6 17:49:33 PDT 2019


A couple weeks ago kylekrack reported:

kylekrack: So I'm encountering a weird bug on mac with Nightly 20190306 where using options like Test Game and Compile Scripts causes custom to freeze until I click the X to close out the program.
kylekrack: Restarting Custom stops the problem
kylekrack: It appears to have something to do with changing the scale/window size
kylekrack: I can't replicate it consistently, though

https://cdn.discordapp.com/attachments/429686966507012108/603329849913769985/ohrfreezebug.mov

I think the blame is most likely with SDL 1.2, which has always had problems with spawning programs on Windows and Linux too, despite a lot of attempted workarounds.
Modifying the window (resizing/changing zoom, fullscreening and toggling resizability) also cause possible key input problems in SDL 1.2, all call gfx_sdl_set_screen_mode which calls SDL_SetVideoMode which recreates the window, apparently possibly causing SDL's internal keyboard/mouse state to become inconsistent. The SDL 2 API is different, it has functions to do those things without recreating the window. Since kylekrack mentioned changing the window size, I'm very hopeful that gfx_sdl2 is the solution to this problem. In the last few days I've been working on getting gfx_sdl2 running on Mac, and hope that's the solution. (Not for Fulfuns, obviously.)
I don't know whether the other spawning problems are fixed/better in SDL 2.

Aside, another possible source of problems is the way we spawn Game on Unix (popen/pclose : see bug #22), but that's not used for HSpeak so can't be the problem here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/23
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20190806/35c40d86/attachment.html>


More information about the Ohrrpgce mailing list