Primary windows does't continuously refresh its content while resized #422
Labels
state: ready
Fixed/Added and will be present in an upcoming release
type: improvement
improvements or optimizations are needed
Version of Dear PyGui:
Version: 0.6.117
OS
Operating System: macOS 10.15.7
(but according to @hoffstadt this issue probably affects all OSs)
Issue
When a non-primary window is resized, its content is refreshed continuously. For a primary window, the content is not refreshed until the user releases the mouse. Instead, the frame buffer is simply scaled which leads to an inelegant display in most cases.
Video demo:
Screen.Recording.2020-12-30.at.18.11.30.mp4
The first half exhibits the issue, the second shows the result when using the proposed workaround.
Workaround
Add this code before
start_dearpygui()
:Notes
set_start_callback()
is required because otherwiseredraw()
is first called too early and leads to a crash at boot.The text was updated successfully, but these errors were encountered: