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

[BUG] visual bug in upgrades menu #1028

Closed
Bob620 opened this issue Dec 17, 2020 · 8 comments
Closed

[BUG] visual bug in upgrades menu #1028

Bob620 opened this issue Dec 17, 2020 · 8 comments

Comments

@Bob620
Copy link

Bob620 commented Dec 17, 2020

I am seeing a visual bug as displayed in the mp4 below. It happens on any shape at seemingly random but short intervals.

https://i.gyazo.com/df78473b445ae3fceda62022ef35b157.mp4

From a blind guess, Id say the shapes are being generated from js and the browser is hating it. If this is the case it should be done via css and html which will fix a lot of possible future visual issues and will improve render performance.

Id love to look at fixing this but I have no familiarity with your code base and it would take me a while to, assuming I have time.

@Bob620
Copy link
Author

Bob620 commented Dec 17, 2020

I am having trouble making a video of it, but it also seems that the upgrades menu's blurred background may also be js? It is rapidly (~60Hz? not sure) flashing (I assume in and out of existence?). This also is seen in GPU usage, moving it from 14.0% up to 45.5+% just by opening the upgrades menu.

CPU usage increases from ~8.0% up to 19.5% by opening the upgrades menu as well. Again I assume this is due to how the blurred background is being created along with the weird shape generation bug from above.

I will post a video if I can get one but its such a fast flash that its hard to capture.

@Bob620
Copy link
Author

Bob620 commented Dec 17, 2020

Upon further testing It seems that it happens generically on the game background and not just the blurred screen, but it is hard to get a video of as it seems to not happen consistently, my assumption is as the game fps drops it becomes visible, though I haven't been able to confirm it by intentionally causing fps drops.

Also it drops fps hard when you introduce just a few redundant belt loops.

Here is a better mp4 of the initial visual bug:
https://probelab.nyc3.digitaloceanspaces.com/2020-12-17%2017-45-39.mp4

@darkwater4213
Copy link

I'm seeing little flashes of a few white pixels around the edges of various shapes. Is that the problem?

@Aurumaker72
Copy link

I am having trouble making a video of it, but it also seems that the upgrades menu's blurred background may also be js? It is rapidly (~60Hz? not sure) flashing (I assume in and out of existence?). This also is seen in GPU usage, moving it from 14.0% up to 45.5+% just by opening the upgrades menu.

CPU usage increases from ~8.0% up to 19.5% by opening the upgrades menu as well. Again I assume this is due to how the blurred background is being created along with the weird shape generation bug from above.

I will post a video if I can get one but its such a fast flash that its hard to capture.

Flickering at 60HZ would mean no visible flicker

@darkwater4213
Copy link

Flickering at 60HZ would mean no visible flicker

Well... If it is flickering for several frames at 60 Hz, then yes, it would be visible. Even only a couple frames would be visible to someone with fairly decent eyeballs (not me lol I wear glasses)

@Bob620
Copy link
Author

Bob620 commented Feb 9, 2021

@Aurumaker72 It is flickering at some rate that is visible and seems to be causing a lot of render-based lag, I assume it is in some way locked to the fps the game is running at. @darkwater4213 has a good point that it might take several frames to render or something.

This also assumes you have a monitor that is >=60Hz and that the game is running at a similar fps that I have tested, I have confirmed it can happen at various fps. If it even stops existing for a single frame out of 60, I think enough people would be able to notice something is off. Bigger problem is the possible lag it is causing.

A good addition to testing may be to enforce an fps, not just a tickrate, as those are separate systems in the code.

@darkwater4213 Yes, those are the first obvious thing I saw, if you keep watching various UI (primarily shape-based), it can do similar and the shade-background on some overlay menus can flicker.

@tobspr
Copy link
Member

tobspr commented Feb 11, 2021

It looks like a driver / system issue. Unfortunately there is nothing I can do about this.

@tobspr tobspr closed this as completed Feb 11, 2021
@Bob620
Copy link
Author

Bob620 commented Feb 12, 2021

Its happened on my previous Intel/Nvidia, AMD/Nvidia, and my current AMD/AMD systems all running win10, so not sure if that is only a driver issue, but I also don't know much of anything about drivers.

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

4 participants