-
Notifications
You must be signed in to change notification settings - Fork 48
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
Common: Use Game loop to render the FFNx logo #543
Common: Use Game loop to render the FFNx logo #543
Conversation
Weird how this is happening to you again. I clearly remember having fixed this on this commit: 08d8092 Are you using the latest I like the idea of skipping the logo with CTRL+S though, can we implement it generically also for FF7? |
bae5b74
to
e1a83db
Compare
Yes, when I start the game without the publisher video (you can rename/remove the file publish.pak to skip this video), and then I try to close the game, it hang. Looking at the code, I can imagine that the game is waiting for the render init to finish before sending any events to Windows.
Honestly I don't know, I've done it for FF8 because I know well how pubintro loop works |
A-ha ok, didn't consider that edge case. But is it a valid one? I'd assume the game to always be installed correctly, and as long as it is it will work fine. I'd prefer finding one way to handle this code instead of having to inject it in custom ways per game edition. Can't this code be independent of the game? that's the main purpose basically of it. Run an intro logo and then start the game. Regarding the CTRL+S combo we could add it on the renderer loop directly I guess, maybe I can do some tests somewhere this week. |
I checked with the publisher movie, and even the freeze is less noticeable, it is still there.
Maybe yes, the missing part of the existing code (the one from the master branch) is that Windows events are not answered during the ffnx logo loop, maybe if we find a function that prevent the window to be unresponsive on each frame, we can keep the existing code :) |
Right, that was something I wanted to tackle because that loop we do block the events parsing you're right. One way would be to hijack one existing loop and "abuse" it, another one is to create our own...at this stage then I'd say to use the game's one, you're right. May I ask if you could implement the very same logic on FF7 too so we make this PR unique? Would it be possible for you? Thank you in advance! |
I will try today, and I'll let you know |
… fix jp version + hook cleaning
1f68244
to
8735cd2
Compare
I pushed the FF7 version, they look alike because in both cases I hook to the begin scene call to draw the logo. |
Fantastic, thank you! Is it ready for merge? Or do you still have pending fixes? |
It is ready :) |
Thank you! |
…FNx logo (julianxhokaxhiu#543)"" This reverts commit 0ca84be.
Summary
ACKs