-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
WebAssembly: fix the mouse issues when toggling the vsync mode and switching to full screen mode #9453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oleg-derevenetz , I put several comments in this pull request. Could you please take a look at them and see if they make sense?
8afdf66
to
8654123
Compare
11d4f93
to
c942f9b
Compare
c942f9b
to
18120b4
Compare
@ihhub what do you think about playability of the wasm version in general (except for some rough edges maybe like the full-screen mode)? Is it good enough to consider this version as "general availability" and publish it on the project's website as a "demo" (in a way)? I'm not talking about the launcher right now, but only about the game itself. |
Hi @Branikolog , please prioritize this pull request. |
Hi @Branikolog , please complete your review by today. |
Hi! VID20250207174816.mp4Not so critical issue, though. There're no any other problems on PC version. |
Full screen is seriously broken in wasm (and it's broken differently in different browsers), and I don't know yet how to cure it in a "cross-platform" way. It may have to be disabled altogether in the wasm version. |
@oleg-derevenetz , hi.
The issue I've filmed is valid for the PC version, since I'm not able to run application with browser. And I'm convinced, that Fullscreen shouldn't be an option for the browser. |
Yes, I tried to run the game in the "true full-screen" mode (I mean, on Windows with hardware mouse cursor), and yes, when the |
Yeah, forgot to mention, that the issue occurs for hardware cursor. Thanks for clarification! |
Hi @oleg-derevenetz , let's merge it after 1.1.6 release. |
@oleg-derevenetz , thank you very much for the changes! |
Related to #9444 (comment)
This PR uses
SDL_RenderSetVSync()
, which is available since SDL 2.0.18 (that's why the Ubuntu version in the "Linux x86-64 SDL2 Release" workflow has been bumped from 20.04 to 22.04) instead of re-creating the renderer "on the fly" and also it removes a lot of cryptic code related to the SDL rendering.Also it bumps the emsdk version to
4.0latest and removes the workaround from our CI that was required to be able to build the multithreaded version of fheroes2.As usual, you can see this PR running here:
https://oleg-derevenetz.github.io/fheroes2/
https://oleg-derevenetz.github.io/fheroes2/demo/
There are still some issues left - for instance, when trying to change the in-game resolution when the game running in full screen mode, there are some inadequate switching, stretching, etc., but I don't know yet what to do about it anyway.