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

Box example (Chapter 6) Flickering. #19

Open
BrennyBear opened this issue Mar 28, 2019 · 5 comments
Open

Box example (Chapter 6) Flickering. #19

BrennyBear opened this issue Mar 28, 2019 · 5 comments

Comments

@BrennyBear
Copy link

When I run the Box example, the Box flickers. It does not seem to be an issue with other examples but I cannot figure out why it is happening.

@HuazyYang
Copy link

I think this is normal since the run time refresh rate is much higher than the adapter's refresh rate, which on my laptop the adapter's refresh rate is 60FPS, you may put the render thread to sleep a while to stalling to submit commands to GPU, which may alleviate the flicking issues. By the way, other samples still suffer the flicking when FPS is two high.

@FlexShashlik
Copy link

@TaylorSevens, thanks :D
I was wondering for a long time why I had this problem and thought that I have problem with my GPU drivers.

@FlexShashlik
Copy link

@BrennyBear, try to run in release mode. That worked for me.

@ethanleau
Copy link

@TaylorSevens, I am curious about the reason for screen flickering when the run time refresh rate is much higher than the adapter's refresh rate. Could you give me some explanations or links to related articles?

@HuazyYang
Copy link

@TaylorSevens, I am curious about the reason for screen flickering when the run time refresh rate is much higher than the adapter's refresh rate. Could you give me some explanations or links to related articles?
Actually, there is no problem because flickering is a window adapter behavior, which conerned to swap chain. you can turn on vsync to limit swap chain sychronzing frequency to below 60fps, refer to MSDN swap chain creation flags:
https://docs.microsoft.com/en-us/windows/win32/api/dxgi/ne-dxgi-dxgi_swap_chain_flag

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