Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Made with foo_uie_webview (Read 60819 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Re: Made with foo_uie_webview

Reply #150
@yeyo thank you for the random dot color idea! It's great!

For OnTimer(), I use the recommended interval from foo_uie_webview.
I tried 50ms and it still gives the same number of samples.
I think foo_uie_webview only gives the visualization data at 100ms intervals, so running it too often probably just waste CPU cycles.
I saw the webview process CPU move from 5% to 8% ... I am just guessing here...
I have gone back to 100ms in my code.

Re: Made with foo_uie_webview

Reply #151
Posting the updated code.

The old DOM code was inefficient and uses lots of CPU for hires tracks.
The code was modified to use canvas which is supposedly more efficient.
The samples processed was also reduced by 2 to reduce load on CPU. (you can tweak the downsampling factor in the code)
Taking on the random color dot idea, now there are 10 dot color programs ... just double-click the canvas to cycle through the programs.
Again, there may be bugs in the code :)

Enjoy!


Re: Made with foo_uie_webview

Reply #152
Posting the updated code.

The old DOM code was inefficient and uses lots of CPU for hires tracks.
The code was modified to use canvas which is supposedly more efficient.
The samples processed was also reduced by 2 to reduce load on CPU. (you can tweak the downsampling factor in the code)
Taking on the random color dot idea, now there are 10 dot color programs ... just double-click the canvas to cycle through the programs.
Again, there may be bugs in the code :)

Enjoy!

This one does seem to keep the CPU cooler. Thanks to both of you for the team-up.

Re: Made with foo_uie_webview

Reply #153
Updated version 17.
  • modified for 50ms interval (please change webview config page from 100ms to 50ms to match)
  • tweaked color programs
  • added program number display (double click the canvas to change program)
  • added peak meter