When using codeblocks with a remote X display over a wide area network, key press takes approx 1 second to register. gedit key press over same network exhibits no perceptible delay.
While trying to troubleshoot, I ran wireshark to monitor the network traffic between the server and client. Each keypress in the editor window is triggering roughly 25 round trip calls to the X server. The duration of these ~25 calls corresponds to the delay observed in the editor window.
Environment
server connection via ssh -X
30ms ping to server
100mb/s bandwidth
Does this same problem happens with Scite, Geany or any other Scintilla based editor?
I just tested scite. scite is very responsive. About as responsive as gedit. No noticeable delay with scite.
Can you try to disable code completion plugin or any other non-core plugins?
Also can you do some profiling with perf/vtune/something else?
Last edit: Teodor Petrov 2015-07-09
I've tried disabling plugins with no success. Can you give me an idea what you are looking for with perf/vtune? The delay is easily explained by the X traffic and confirmed by wireshark. 25 messages times 30ms delay = 750ms.
Steps to reproduce.
1) Run codeblocks with a remote X display
2) Start capturing X traffic
3) Press a key in editor window.
4) See 25 X messages between X client and server.
I want to see the functions in our code that cause the transmission of these X messages. I think perf/vtune will show this.
Unfortunately I don't have a proper setup to reproduce this problem easily.
Unfortunately, I don't have the proper setup to perform the tests that you are requesting. That said, the steps that I outlined above can be used to reproduce the issue should someone with the proper setup find time to look into this.
Thanks for your help with this.
This appears to be resolved in Release 13.12 rev 9501. Maybe sooner, but I have not tested.
Thanks
Can you do a bisect? What version of wx are you using 2.8 or 3.0?
wx3.0.2
No, I am not able to do a bisect.