X-Friese / FlyWithLua

A Lua scripting plugin for X-Plane
MIT License
154 stars 54 forks source link

imgui text unreadable after script reload #31

Open devincrossman opened 5 years ago

devincrossman commented 5 years ago

Awesome plugin! imgui is working great except when I reload my FlyWithLua scripts the text becomes blurry and is unreadable (not every time but most times). Completely restarting X-Plane is the only way I have found that fixes it. Using X-Plane 11.31r1 (build 113100 64-bit) on Windows 10 and FlyWithLua 2.7.12, example screenshot using the imgui_demo.lua script included with FlyWithLua

image

nevkontakte commented 5 years ago

If I were to guess, something is wrong with font reloading... Is 11.31r1 in beta right now or stable? Mine seems to be 11.30r3 and I don't recall running into this.

devincrossman commented 5 years ago

11.31r1 was a release candidate which I guess is a type of beta. I'm only noticing the issue when I have multiple imgui windows open. For example having both the imgui demo script and my own script running with an open imgui window. When I only have one script with an imgui window loaded I haven't noticed this problem.

urbanswelt commented 4 years ago

I have seen the same when testing the scripts. In most cases this is related to the declaration of the variables. Whenever possible think local ! Do not build functions inside the gui`s. If I find the time I can give a bad example where this is reproducible.

sparker256 commented 4 years ago

@urbanswelt Yes that would be great thanks.