Clean up layering loop #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When trying the layering I first failed on an assert. That's the second patch.
Then there was a second problem that as soon as I started a game (CS GO) the screen became black. I noticed that if I reset all values of layers that were used in the past but not anymore the game was shown after a certain amount of time.
The reason: as soon as the mouse cursor and the info message in right lower corner was hidden it showed. The cursor or the info message were on a second layer. Whenever there are more than one layer the layer below becomes black. This could be a bug in libliftoff or the kernel driver (tested with RX 5700 XT).
Resetting all values for now is part of the first patch, which does also overall tidy up the loop a bit and adds some verbose debug statements for the loop that can be activated via command line parameter.