{"action":"created","issue":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/3454","repository_url":"https://api.github.com/repos/FreeRDP/FreeRDP","labels_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/3454/labels{/name}","comments_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/3454/comments","events_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/3454/events","html_url":"https://github.com/FreeRDP/FreeRDP/issues/3454","id":168864167,"number":3454,"title":"User inputs are not recognized when video playback is running","user":{"login":"jobraun","id":752812,"avatar_url":"https://avatars.githubusercontent.com/u/752812?v=3","gravatar_id":"","url":"https://api.github.com/users/jobraun","html_url":"https://github.com/jobraun","followers_url":"https://api.github.com/users/jobraun/followers","following_url":"https://api.github.com/users/jobraun/following{/other_user}","gists_url":"https://api.github.com/users/jobraun/gists{/gist_id}","starred_url":"https://api.github.com/users/jobraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobraun/subscriptions","organizations_url":"https://api.github.com/users/jobraun/orgs","repos_url":"https://api.github.com/users/jobraun/repos","events_url":"https://api.github.com/users/jobraun/events{/privacy}","received_events_url":"https://api.github.com/users/jobraun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T11:37:05Z","updated_at":"2016-08-04T12:51:28Z","closed_at":null,"body":"First some specs about the machine which was used to start remote session:\r\n- Ubuntu 13.10\r\n- CPU: AMD G-T44R Single Core 1.2 GHz \r\n- GPU: Integrated Radeon HD 6250\r\n- RAM: 1 GB\r\n- Ethernet: 1 GBit\r\n- Command line: `xfreerdp /v:<remote server> /p:<passwd> /u:<user> /d:<domain> /f -grab-keyboard -compression /sound:sys:pulse`\r\n\r\n\r\nMy last freerdp version I used was build from stable-1.1 branch. The overall performance with this build was great. I was able to watch youtube videos. Also Big Bug Bunny 480p runs smooth without multimedia redirection.\r\n\r\nYesterday I tried the current development HEAD (freerdp 2.0) and the overall remote performance decreased noticeably. Youtube videos are running, but with laggs. The remote session is not controlable when a video was started in the remote session, e.g. Big Bug Bunny,\r\n\r\nThen I made some profiling with valgrind. I started xfreerdp with `valgrind --tool=callgrind xfreerdp` and saw that there are a lot of calls into libssl and libcrypto.\r\nFreerdp 2.0 is able to connect via TLS 1.2. When TSL 1.2 is used, a lot of `SHA256_Transform` calls in libcryto.so are done. Whereas Freerdp 1.1 only connects to TLS 1.0 and therefore only `SHA1_Transform` is called. These SHA256_Transform calls are 43 percent of the overall workload.\r\n\r\nThe other difference I mentioned is that Freerdp 2.0 does call libcrypto functions. This results in `EVP_Cipher` calls which did 24 percent of workload. Is this only for key calculation or for certificate handling?\r\n\r\nI also tried some parameters without success.\r\n- `-bitmap-cache`: Does improve the performance, but artefacts are drawn in my remote firefox browser. Artefacts are also drawn into Chrome browser.\r\n\r\n- `/rfx`: No effect, cause host windows does not run in Microsoft Hyper-v.\r\n\r\n- `/gfx`: Video playback breaks RDP session with the following error log:\r\n`[12:21:03:894] [18025:18026] [INFO][com.freerdp.client.common.cmdline] - loading channel drdynvc\r\nPassword: \r\n[12:21:08:461] [18025:18026] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel rdpgfx\r\n[12:21:09:593] [18025:18035] [ERROR][com.freerdp.channels.drdynvc.client] - ChannelId 10 not found!\r\n[12:21:09:594] [18025:18035] [ERROR][com.freerdp.channels.drdynvc.client] - drdynvc_order_recv failed with error 1359!\r\n[12:21:09:882] [18025:18026] [ERROR][com.freerdp.core] - drdynvc_virtual_channel_client_thread reported an error. Error was 1359\r\n[12:21:09:882] [18025:18026] [INFO][com.freerdp.client.x11] - Network disconnect!\r\n[12:21:09:882] [18025:18026] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor`\r\n\r\n\r\nAre there any parameters (Freerdp cmd line or CMAKE) or configurations which will help to increase the performace with current Freerdp version 2.0? Or do I have to stick with the older freerdp?\r\n\r\nThanks Jo\r\n"},"comment":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/comments/237543203","html_url":"https://github.com/FreeRDP/FreeRDP/issues/3454#issuecomment-237543203","issue_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/3454","id":237543203,"user":{"login":"jobraun","id":752812,"avatar_url":"https://avatars.githubusercontent.com/u/752812?v=3","gravatar_id":"","url":"https://api.github.com/users/jobraun","html_url":"https://github.com/jobraun","followers_url":"https://api.github.com/users/jobraun/followers","following_url":"https://api.github.com/users/jobraun/following{/other_user}","gists_url":"https://api.github.com/users/jobraun/gists{/gist_id}","starred_url":"https://api.github.com/users/jobraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobraun/subscriptions","organizations_url":"https://api.github.com/users/jobraun/orgs","repos_url":"https://api.github.com/users/jobraun/repos","events_url":"https://api.github.com/users/jobraun/events{/privacy}","received_events_url":"https://api.github.com/users/jobraun/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T12:51:28Z","updated_at":"2016-08-04T12:51:28Z","body":"> As far as I know you don't need to run your windows in Hyper-V to enable rfx.\r\n> I configured myself rfx on windows server 2008 sp1 and windows server 2012r2 (both virtual machines without hyper-v) which makes the sessions more controllable with freerdp /rfx.\r\n> \r\n> Maybe this blog / website helps you (gpedit.msc settings):\r\n> http://blog.tedd.no/2011/04/28/optimizing-rdp-for-casual-use-windows-7-sp1-remotefx/\r\n\r\nSadly /rfx didn't improve the performance. \r\n\r\n\r\n> Edit: Also try setting the \"Limit maximum color depth\" to 32 bit on windows.\r\n\r\nAlso did reduce the color depth via parameter `/bpp` but the result wasn't a noticable performance boost.\r\n\r\n\r\n> If it is enabled and still lagging, try setting \"+async-input\" and \"+async-update\".\r\n\r\nWhen I read your answer, I hoped to improve speed by adding `+async-input` and `+async-update`. But there was no improvement.\r\n\r\n\r\nAs I said in my first post, a lot of cpu load is produced due to ssl lib calls (`SHA256_Transform` and `EVP_Cipher`).\r\n\r\n"}}
{"actor":{"display_login":"jobraun"}}