-
Notifications
You must be signed in to change notification settings - Fork 25
Smart Screen SDK performance is too slow at X86 machine #9
Comments
Your Vimeo video seems not to be accessible. I've the sample app running on Ubuntu as well (Ubuntu 18.04.3 and Google Chrome 78) and the Taipei weather shows up in less than 2.5 seconds. I started my stopwatch when the Alexa sample app console output was done with "THINKING" and started "SPEAKING" and stopped the watch when the GUI appeared in the browser. Launching "tune-in" took around 5 seconds but that seems to include figuring out what the play. The GUI appears on the screen around 2 seconds after the audio starts playing. My platform is an old industry PC (Hystou PC, Intel i5-3317U, 1.7 GHz x 2) which scores 18181 in the Codeload part of the Octane 2.0 benchmark (https://chromium.github.io/octane/). My work laptop scores around 30000. It might be slower for you because you build the JetPack javascipt bundle in "development" mode and not in "production". In order to change that go to "modules/GUI/js/webpack.config.js" and after the "module.exports" line you need to change "mode: 'development'", into “mode: 'production” and remove the "devtool: 'inline-source-map'" line. That reduces the bundle.js file size. |
I upload video to YouTube link |
I see, yes that's very slow. |
@eeduwj, |
@eeduwj , |
Your PC is fast enough unless some other process is taking up too many resources. I recommend starting "System Monitor" and monitoring the CPU history. 668KB for main.bundle.js is good as well. Finding out when the Smart Screen SDK gets the visual elements for the webpage from the Amazon cloud can be done with Wireshark. But the HTTPS2 connection is encrypted. You can edit the file ".bash_profile" and add "export SSLKEYLOGFILE=~/.ssl-key.log" and then point Wireshark to this file. Then you can see (with times) the decrypted HTTP2 data transfer between the Smart Screen SDK and the Amazon cloud. That should tell you if the data is slow to arrive at your PC or if the delay is on your PC. |
I use those command to capture http2 connection ./modules/Alexa/SampleApp/src/SampleApp -C ~/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json -C ~/sdk-folder/alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples/GuiConfigSample_TvOverlayLandscape.json -L DEBUG0 2>&1 | tee sampleapp_ss.log Here is my wireshark packet. I only ask what's weather in Taipei |
I had a look at your network capture file (eth0.pcapng). Unfortunately I can't see when the images for the weather are being received from the network. I can't see the decrypted, uncompressed data. But I can see at least the TLS data. |
Our network is using Symmetric NAT. |
Could you please enable Kayak skill or one of the other 3P skill that have APL enabled and try to run it through our SmartScreen SDK. Also please provide us the logs while running the SmartScreen SDK in DEBUG 9 mode for the previous utterance ("What is the weather") |
@lynx-arul |
Great thanks a lot for letting us know. |
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
I follow this instruction to build x86 ubuntu vesion smart screen sdk 2.0.1.
I try to use firefox(69.0.2 (64-bit))/chromium-browser(78.0.3904.108).
The performance is too slow(It need to take more than 5-10 sec to show UI)
Sometime it couldn't show weather display card.
Here is my log about running smart screen sdk as below
sampleapp_ss.log
The video is as below
https://vimeo.com/user105924617/review/377537751/25ee87777e
What is the expected behavior?
It should show up UI like this demo(< 3 sec)
https://www.youtube.com/watch?v=84x8I6XVF4I
What behavior are you observing?
The performance is too slow(It need to take more than 5-10 sec to show UI. Sometime it will delay to show UI until next command running)
Provide the steps to reproduce the issue, if applicable:
1.Run browser with
2.Run smart screen sdk
./modules/Alexa/SampleApp/src/SampleApp -C ~/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json -C ~/sdk-folder/alexa-smart-screen-sdk/modules/GUI/config/guiConfigSamples/GuiConfigSample_TvOverlayLandscape.json -L DEBUG0 2>&1 | tee sampleapp_ss.log
3.Push a & say what's weather in Taipei.
4.Push a & say play music from tune-in
Tell us about your environment:
What version of the AVS Device SDK are you using?
Tell us what hardware you're using:
Tell us about your OS (Type & version):
The text was updated successfully, but these errors were encountered: