{"action":"created","issue":{"url":"https://api.github.com/repos/vispy/vispy/issues/1108","labels_url":"https://api.github.com/repos/vispy/vispy/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/vispy/vispy/issues/1108/comments","events_url":"https://api.github.com/repos/vispy/vispy/issues/1108/events","html_url":"https://github.com/vispy/vispy/issues/1108","id":112037261,"number":1108,"title":"Resizing is slow on Ubuntu","user":{"login":"rossant","id":1942359,"avatar_url":"https://avatars.githubusercontent.com/u/1942359?v=3","gravatar_id":"","url":"https://api.github.com/users/rossant","html_url":"https://github.com/rossant","followers_url":"https://api.github.com/users/rossant/followers","following_url":"https://api.github.com/users/rossant/following{/other_user}","gists_url":"https://api.github.com/users/rossant/gists{/gist_id}","starred_url":"https://api.github.com/users/rossant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossant/subscriptions","organizations_url":"https://api.github.com/users/rossant/orgs","repos_url":"https://api.github.com/users/rossant/repos","events_url":"https://api.github.com/users/rossant/events{/privacy}","received_events_url":"https://api.github.com/users/rossant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vispy/vispy/labels/type:%20performance","name":"type: performance","color":"fcdb04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-18T19:48:02Z","updated_at":"2015-10-18T21:43:27Z","closed_at":null,"body":"I have a rather odd issue and I'm wondering if it is specific to my configuration, or if others can reproduce it as well.\r\n\r\nOn my Ubuntu 14.04 64-bit laptop with a dedicated NVIDIA GPU, while the FPS is high with any VisPy canvas, *resizing* the window is quite sluggish (at the level of the window manager, Unity here). This means that the borders of the window are resized very slowly (a few FPS).\r\n\r\nOn this machine, the same problem occurs with all versions of VisPy, Python, all backends, all examples, etc. Resizing a PyQt window *without* a VisPy canvas is fast.\r\n\r\nI cannot reproduce the problem at all on OS X or Windows.\r\n\r\nProfiling results on Ubuntu with a trivial example (empty canvas):\r\n\r\n```\r\n         67141 function calls (65521 primitive calls) in 10.613 seconds\r\n\r\n   Ordered by: cumulative time\r\n   List reduced from 1154 to 100 due to restriction <100>\r\n\r\n   ncalls  tottime  percall  cumtime  percall filename:lineno(function)\r\n        1    0.000    0.000   10.613   10.613 a.py:2(<module>)\r\n        1    0.000    0.000   10.203   10.203 _default_app.py:57(run)\r\n        1    0.000    0.000   10.203   10.203 application.py:106(run)\r\n        1    0.000    0.000   10.203   10.203 _qt.py:212(_vispy_run)\r\n        1    8.132    8.132   10.203   10.203 {built-in method exec_}\r\n  262/166    0.003    0.000    2.069    0.012 event.py:391(__call__)\r\n      381    0.000    0.000    2.062    0.005 event.py:446(_invoke_callback)\r\n       95    0.001    0.000    2.032    0.021 _qt.py:626(paintGL)\r\n       95    0.000    0.000    1.477    0.016 canvas.py:409(swap_buffers)\r\n       95    0.000    0.000    1.477    0.016 _qt.py:610(_vispy_swap_buffers)\r\n       95    1.477    0.016    1.477    0.016 {built-in method swapBuffers}\r\n       95    0.000    0.000    0.535    0.006 context.py:159(flush_commands)\r\n      190    0.000    0.000    0.533    0.003 glir.py:443(parse)\r\n      285    0.001    0.000    0.533    0.002 glir.py:376(_parse)\r\n       95    0.000    0.000    0.532    0.006 glir.py:228(flush)\r\n       95    0.000    0.000    0.532    0.006 glir.py:139(flush)\r\n       95    0.529    0.006    0.529    0.006 _gl2.py:166(glClear)\r\n        1    0.000    0.000    0.238    0.238 canvas.py:110(__init__)\r\n       96    0.000    0.000    0.165    0.002 canvas.py:398(set_current)\r\n       96    0.000    0.000    0.164    0.002 _qt.py:604(_vispy_set_current)\r\n       96    0.164    0.002    0.164    0.002 {built-in method makeCurrent}\r\n        2    0.001    0.001    0.110    0.055 __init__.py:7(<module>)\r\n        1    0.000    0.000    0.097    0.097 __init__.py:18(<module>)\r\n        1    0.002    0.002    0.082    0.082 logs.py:5(<module>)\r\n        1    0.000    0.000    0.069    0.069 canvas.py:211(create_native)\r\n        6    0.007    0.001    0.065    0.011 __init__.py:1(<module>)\r\n        2    0.057    0.029    0.057    0.029 _qt.py:222(_vispy_get_native_app)\r\n        1    0.000    0.000    0.057    0.057 application.py:138(native)\r\n        1    0.001    0.001    0.050    0.050 __init__.py:106(<module>)\r\n```\r\n\r\nAny ideas? Anyone else observes this?"},"comment":{"url":"https://api.github.com/repos/vispy/vispy/issues/comments/149051014","html_url":"https://github.com/vispy/vispy/issues/1108#issuecomment-149051014","issue_url":"https://api.github.com/repos/vispy/vispy/issues/1108","id":149051014,"user":{"login":"rossant","id":1942359,"avatar_url":"https://avatars.githubusercontent.com/u/1942359?v=3","gravatar_id":"","url":"https://api.github.com/users/rossant","html_url":"https://github.com/rossant","followers_url":"https://api.github.com/users/rossant/followers","following_url":"https://api.github.com/users/rossant/following{/other_user}","gists_url":"https://api.github.com/users/rossant/gists{/gist_id}","starred_url":"https://api.github.com/users/rossant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossant/subscriptions","organizations_url":"https://api.github.com/users/rossant/orgs","repos_url":"https://api.github.com/users/rossant/repos","events_url":"https://api.github.com/users/rossant/events{/privacy}","received_events_url":"https://api.github.com/users/rossant/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T21:43:27Z","updated_at":"2015-10-18T21:43:27Z","body":"Do you have an Ubuntu machine you could reproduce this problem on? I'm mostly interested in knowing whether I am the only one seeing this problem or not. Resizing happens a lot in my application so this is a bit of a problem (minor, though)."}}