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

"Clear Display Buffer" is not working #7456

Open
gm-bug-reporter bot opened this issue Aug 28, 2024 · 2 comments
Open

"Clear Display Buffer" is not working #7456

gm-bug-reporter bot opened this issue Aug 28, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation are required by this issue project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@gm-bug-reporter
Copy link

Description

In Room Settings, the option "Clear Display Buffer" is meant to clear the display in areas of the window not covered by viewports by filling them with the window color. However, it currently doesn't do anything. The "Clear Viewport Background" option on Viewports and Cameras seems to do what the "Clear Display Buffer" does instead, even for regions outside of viewports.

Steps To Reproduce

Create a room with a viewport that is either smaller than the window, or that is offset, such that it leaves an empty space. Then disable "Clear Viewport Background" in Viewports and Cameras. If you have any room transition into it, there will be visual remains from the previous scene projected into the empty space, regardless of whether "Clear Display Buffer" is checked.

Which version of GameMaker are you reporting this issue for?

IDE v2024.6.2.162 Runtime v2024.6.1.208

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

Which platform(s) are you seeing the problem on?

GX.games, Windows

7a278f9a-0bb6-41ba-b172-de0dcfdd6d1f

@gm-bug-reporter gm-bug-reporter bot added project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes labels Aug 28, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Aug 29, 2024
@jackerley
Copy link

I've removed the option from the IDE as its use was removed from the runner due to finding a lot of projects having this set unnecessarily.

@github-project-automation github-project-automation bot moved this from Backlog to Done in Team Workload Dec 3, 2024
@YYBartT YYBartT added the documentation Improvements or additions to documentation are required by this issue label Dec 3, 2024
@jackerley jackerley reopened this Dec 5, 2024
@github-project-automation github-project-automation bot moved this from Done to Triage in Team Workload Dec 5, 2024
@jackerley jackerley moved this from Triage to Done in Team Workload Dec 6, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Dec 6, 2024
YoYoGames/GameMaker-Bugs#7456

Small changes to window_get_colour() & window_set_colour() manual pages
@YYBartT
Copy link

YYBartT commented Dec 9, 2024

The clear of the display buffer is effectively happening in the provided test project but the application surface is drawn over it (with an alpha of 1). If you add a call to application_surface_draw_enable(false) in obj_persistent_manager's Create event and then draw the application surface manually in that object's Post-Draw event with an alpha value < 1 the display buffer colour will come through:

draw_set_alpha(.5);
draw_surface(application_surface, 0, 0);
draw_set_alpha(1);

The artefacts from the title screen show up on the application surface and remain there because it's never cleared (only parts of it are overwritten by the view's contents because the viewport is offset along x by 292 pixels), unless Clear Viewport Background is checked.

The manual already appears to have all information on clearing the display buffer, mostly on the Room Properties and Draw Events pages.

@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation are required by this issue project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Ready for QA
Development

No branches or pull requests

2 participants