Skip to content
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

Tests for GUI visual updates #14

Open
ivan-mogilko opened this issue Oct 26, 2024 · 0 comments
Open

Tests for GUI visual updates #14

ivan-mogilko opened this issue Oct 26, 2024 · 0 comments

Comments

@ivan-mogilko
Copy link
Contributor

ivan-mogilko commented Oct 26, 2024

Since AGS 3.5.1 there's a number of optimizations done to game GUI, where they don't redraw anytime, but only when something changes in them. Furthermore, depending on a renderer, some properties, such as position may not force redraw of a gui or control itself, since it is done simply by repositioning a texture.

Unfortunately this optimization also turned out to be a source of repeated bugs where GUI did not redraw when it should. Some missing edge cases are found still.

It would be wonderful if game tests could include GUI update tests.

General idea is this:

  • put GUI on screen
  • start changing its properties
  • after each change taken screenshot and test that it was updated.

I am not exactly certain how to "test" though. It may be simply a comparison with the previous saved screenshot to see if anything changed in a region occupied by respective gui or control. Any smarter test would likely require to describe how GUI or control is supposed to look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant