[PLAYER] [BUG] [LOW PRIORITY] Flickering between screens in windowed mode

Started by namida, January 20, 2016, 06:28:56 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

namida

BitBucket: https://bitbucket.org/namida42/neolemmixplayer/issues/14/replace-window-on-window-kludge-with

Status: I'd really like to fix this, but unfortunately, a lot of stuff needs to be changed to get a fix. I've already minimized it as much as I can, but 100% fixing it is not possible at this stage.

Shares a common root cause with the following:
Can't tab back into game, Windows 7
Moving window moves only part
Flickering between screens in windowed mode
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Mostly putting this here so I don't forget about it (since I personally still use full-screen mode). When NeoLemmix is in windowed mode, there's usually a slight flicker between screens; this does not appear to happen (even in the versions that support windowed mode) in fullscreen mode.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

mobius

I do not experience this. However I do notice something else [not sure this warrants it's own topic but you can move it if it does. This may or may not be related.

I noticed this while testing my own level pack:
-The blank screen between levels is longer than it used to be and longer than it is on the NeoLemmix intro pack [the only other pack I've played on the new updated player so far]

-There is also a weird large black box that appears if I first switch from fullscreen to window but it goes away as soon as a screen of the game changes.

Both of these are really not a problem at all, I just thought you might need to know about it.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


namida

For the first one - do your levels, or the graphic sets they use, tend to be quite large? The entire level gets rendered before the preview screen loads, which in turn means the graphic set is also loaded into memory at this point. This would in turn mean the level takes longer to load.

For the second one, does this still occur with V1.38n-B?
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

I've closed the other two topics that I strongly suspect stem from the same issue, in order to keep all discussion in one place.

I had a go with a few more things today that I hadn't tried before, but still don't have a working solution to these issues. Unfortunately, it seems like this is one problem I won't be able to kludge my way around, and instead will have to rewrite significant portions of the UI code.

I did have one approach that looked like it may be going somewhere, but unfortunately - while it did seem to somewhat help - it also generated error messages at an extremely frequent, and unpredictable, rate.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

After forever of no luck, I've had a major breakthrough on all these windowing-related issues today! :)

It's very likely that the next update will fix all of this - mobius's alt-tab issue, Icho's issues when running on WINE, rtw's recording issues, the "ghost window" in the background, and the need for the "alt" version at all. :D

The main problem at the moment is that fullscreen is now broken. I'm still trying to figure out why, but once I have figured this out, it should be a very easy fix.

EDIT: Fullscreen is now working, as long as NL is started in Fullscreen mode. Switching between fullscreen and windowed leads to problems. Switching from one zoom of windowed mode to a different one works, though.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

I've resolved most of the issues with this, apart from the switching between windowed and fullscreen one. It works fine as long as you don't switch between them while NL is running (ie: if you restart, it'll work fine in the other mode), so I've simply made a change so that NL won't switch from windowed to fullscreen (or vice versa) until it's restarted. You can still switch between eg. 2x zoom windowed and 3x zoom windowed without restarting; this works fine.

I've sent an initial test version for the new windowing code to a few people. If feedback is good, I'll release a V10.12.13 update that finally solves this pesky problem. :)
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

Simon has reported issues with the music on this test version. This is likely unrelated to the windowing fix, but rather to the rewrite of sound handling.
mobius has reported that the volume-not-being-saved issue has resurfaced. This too is likely related to the rewrite of sound handling.
I myself found that fullscreen doesn't seem to work on Linux+WINE, and the mouse doesn't clip properly (but aside from that windowed mode works perfectly fine). These, especially the latter, may be related to use of a VM rather than a proper Linux boot. Will wait for feedback on this from Linux+WINE testers.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

I'm closing this one now. If any new issues relating to this or any of the linked issues in the first post become apparent, please create a new topic.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)