Skip to content

Box example (Chapter 6) Flickering. #19

Description

@BrennyBear

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.

Activity

  1. HuazyYang commented on Nov 22, 2019

    @HuazyYang

    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.

  2. FlexShashlik commented on Dec 8, 2019

    @FlexShashlik

    @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.

  3. FlexShashlik commented on Dec 8, 2019

    @FlexShashlik

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

  4. ethanleau commented on Feb 20, 2020

    @ethanleau

    @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?

  5. HuazyYang commented on Apr 26, 2021

    @HuazyYang

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions