Skip to content

TGUI window flashing begone#761

Merged
MrMelbert merged 4 commits intomasterfrom
flashfix
Sep 21, 2025
Merged

TGUI window flashing begone#761
MrMelbert merged 4 commits intomasterfrom
flashfix

Conversation

@MrMelbert
Copy link
Owner

Gets rid of the annoying white flash when opening TGUI windows. Most based fix thanks Zewaka

ZeWaka and others added 4 commits August 17, 2025 18:52
## About The Pull Request

helps remove the shitty white flashing, way way less noticeable

so like this will still happen on first mount of each♻️reused tgui
window♻️, but subsequent full **full** rerenders won't look shitty ugly
gross

pictured: me spamming refresh



https://github.com/user-attachments/assets/706cde5f-06a0-4658-a489-8038d2c517fe



i can't fix first mount unless lummox gives us the ability to set
`WebView2.DefaultBackgroundColor` via `browse()` which, ..... LOL

feel free to merge or close or edit or whatever this is just a courtesy
upstream PR, no warranty


here's the song i was listening to while i wrote this

[![image](https://github.com/user-attachments/assets/24b5643d-7108-4e2b-85d0-b9303ea0444f)](https://open.spotify.com/track/2dYwmQKGTqHEFEafnNwr60)



## Why It's Good For The Game

obviously not as good on different themes than default but still better
than shitty white

i don't think you even have light mode, so no 5% of users or whatever to
complain there either

## Changelog

:cl:
fix: white TGUI window flashing should be less present
/:cl:

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
## About The Pull Request

i hate this shitty flashing bullshit, i develop a real game that should
be taken seriously:


https://github.com/user-attachments/assets/eee05688-14d9-486d-8c89-deeb3ab4d45e

what if we could live in a world without it

oh yeah i did that (again)



https://github.com/user-attachments/assets/351a3243-7835-488a-8d5e-405f640660b8


## Why It's Good For The Game

i'm just upstreaming this so it's less work for me to port changes in 2
years

if you don't think this shit is good you should look at this spoiler:

<details>
<summary>bad opinion zone</summary>


![bad](https://github.com/user-attachments/assets/f207e5d4-7a24-481d-9446-aa0a0edf8528)

</details>

direct all people who have billion pixel tall screens who are scared of
a single pixel flashing for a frame towards the goonstation ideas and
suggestions subforum

oh i also wrote this section of the code originally a year ago in #86868
lol, but that only fixed it in IE not wv2

## Changelog
:cl:
fix: tgui windows should now stop flashing for a single frame elsewhere
when opening
/:cl:
## About The Pull Request

1 pixel (less on most monitor resolutions, it'll render as subpixels
only) flashing dark grey is not noticeable
this overcompensation is not needed
tested on goon and honestly i had to be looking really hard at the
subpixels in the top left to actually even notice

## Why It's Good For The Game

less problems for people with weird setups
or buggy monitors
@MrMelbert MrMelbert merged commit 6be3588 into master Sep 21, 2025
26 checks passed
@MrMelbert MrMelbert deleted the flashfix branch September 21, 2025 19:20
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

Successfully merging this pull request may close these issues.

3 participants