remedybg-issues icon indicating copy to clipboard operation
remedybg-issues copied to clipboard

Flickering when stepping through code

Open sdwe opened this issue 2 years ago • 3 comments

Contents of windows like 'Call Stack' or 'Threads' are flickering when stepping through code. I guess this is because these windows are empty while the program is running. Although the current behavior seems to be 'correct' (because the program is actually running for a short period of time) it feels annoying and distracting to me personally.

Thanks for your great work! I love the speed and snappiness of RemedyBG!

sdwe avatar May 20 '22 07:05 sdwe

Addendum: The flickering only occurs in a large application that consists of hundreds of modules. In smaller programs everything looks fine.

sdwe avatar May 20 '22 12:05 sdwe

It also happens if you have sleep in your code. For example, I have only main.cpp where I open a window, process messages and sleep:

int WinMain(HINSTANCE Instance, HINSTANCE PrevInstance, LPSTR CommandLine, Int32 ShowCode))
{
    // RegisterClassA call
    // AdjustWindowRect call
    // CreateWindowExA call

    Running = true;
    while (Running)
    {
        MSG Message;
        while (PeekMessageA(&Message, 0, 0, 0, PM_REMOVE)) {
            if (Message.message == WM_QUIT) Running = false;
            TranslateMessage(&Message);
            DispatchMessageA(&Message);
        }

        Sleep(30);
    }
    
    return 0;
}

This code already makes debugger flicker when I go over Sleep by pressing F5, F10, etc.

JustSlavic avatar May 27 '22 21:05 JustSlavic

My use case is about simple steps, like assigning an integer. In large programs this is no longer as fast as in small ones. In RemedyBG, the slowdown is considerably less than in VS.

sdwe avatar May 30 '22 05:05 sdwe