AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.38k stars 135 forks source link

[bug] Stuttering glitch appears when rendering table borders #685

Closed valazodev closed 1 week ago

valazodev commented 1 year ago

What happend?

When I create a Table and display it, ocasionally an underscore-like stuttering glitch appears on screen, specifically on the upper and lower borders of each row. This also happens when I run the demo on master/examples/widgets/widgets.go.

01 02

Video footage: https://github.com/AllenDang/giu/assets/57024749/445a2bee-6bcd-4e05-87a6-777356eaa6de

It reminds me of a console cursor, writing text to screen very rapidly and swinging from one side of the screen to the other, but it only happens when I move the mouse around, if I stop moving it the glitch disappears completely.

I've done some tests and it seems Table is not the problem (I removed tables from the demo, but the glitch still remains), but using tables is the easiest way to reproduce the bug.

Code example

main.go ```golang package main import ( g "github.com/AllenDang/giu" ) func main() { window := g.NewMasterWindow("Test", 640, 480, 0) window.Run(func() { g.SingleWindow().Layout( g.Table().Columns( g.TableColumn("Column"), ).Rows( g.TableRow( g.Label("Value"), ), ), ) }) } ```

To Reproduce

Run the code in the example, or the code on master/examples/widgets/widgets.go

Version

(latest)

OS

Windows 11

gucio321 commented 4 months ago

oops, sorry for a bit late reply. @valazodev could you check if this still happens on v0.8.1?

gucio321 commented 1 week ago

lmk if you still have a problem