New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor pane not refreshing fast when updating text #25
Comments
Here's a video demo of what I'm explaining: sqlite-gui-25.mp4I actually didn't have any queries saved, so maybe it's the auto complete that's causing issues? |
Could you attach an query text? |
I started the recording just seconds after opeining the app. I would suggest trying to make an elaborate query with the default DB and seeing if you get the same results. |
How do you change a words and their cases? I didn't see autocomplete and it doesn't like you input text as usual (maybe fps is not enough). Is it some hotkeys? |
Hi,
I select text with shift + arrow keys.
Also test shift + home and end keys.
The video recorded what I saw and experienced. This is not a video playback
issue.
|
This issue can be related with a long query text and a slow PC. If you turn off a text highlighting in Settings, then the problem disappears? |
Hi, My computer may be slower and older than yours, but I have an SSD drive and don't experience any slow issues with any other apps. |
Hi, On a different PC, I see the same results. Highlighting text and replacing it causes the lag with typing. Could this be related to |
It doesn't matter what kind of drive you are use. Currently the entire text is fully re-colorized on any change. It requires multiply non-disk API calls to an editor to colorize each word and extremely slow if the text is long enough. The solution is to colorize only the visible text. I try to implement it. Please check a version without autocomplete - https://disk.yandex.ru/d/5ASPgXWCkR8E3Q to confirm or deny my suppose. |
Thanks for your analysis. I'll try that version of sqlite-gui out soon. |
Hi, There are some improvements but I still see the problem. Now all the text appears very quickly after I stop typing, but it doesn't keep up with my typing. Sometimes pressing the down arrow key causes the updated text to appear. Once I get it to happen the first time, it seems to always occur, just like before. |
Could you provide your OS, the query line count and CPU model?
Hence, it's a not a highlighting issue and autocomplete is more likely. |
Windows 10 version 1809 OS build 17763.1879 on a Intel core i5-2400 cpu 3.10GHz The query I'm executing is 14 lines, but it's only using 1 table in my database. |
Thanks for information. |
I repeated this error in Win10. |
Oh, good to hear you were able to find a machine, and experience the same/similar problem. |
It looks like that |
That DLL does seem to make a difference. Do you also notice some improvements? |
With Win7 dll I couldn't reproduce the paint bug and (possibly) the app works faster. |
Yes, seems like app works faster with this DLL. Glad we got this one taken care of - good job! |
Hi,
This may need more experimenting and investigating on your part, because I'm not exactly certain what I'm seeing is related.
It seems saving a query (maybe multiple saves) cause the editor pane to become sluggish and doesn't update to edit/view the query.
The app never crashes or becomes unresponsive, but the editor pane doesn't refresh allowing you to see the text very well.
Thanks!
The text was updated successfully, but these errors were encountered: