Page 1 of 1

Web browser slows flowcode to a standstill

Posted: Tue Jan 31, 2023 4:56 am
by RGV250
Hi,
I have a strange issue here, in the simulation the values are changing really fast but as soon as I open the webbrowser it brings the simulation to a virtual standstill, it is like watching paint dry. I have resized the windows and (in Firefox) I click on the cross to stop the browser and you see the values racing away but as soon as I click to update it just slows down so much. I was under the impression that the flowcode project should run as normal and the web browser would just get the current data?

I am not sure if I have the iframes update right in the web code but I do not think that a web browser should affect the actual program it is getting data from?
RPI_Ext_Browser_Test_5B.zip
(5.46 KiB) Downloaded 86 times
Also there is a switch disabled in the webserver macro, this does not appear to work butt he decisions above do??

Regards,
Bob

Re: Web browser slows flowcode to a standstill

Posted: Tue Jan 31, 2023 3:12 pm
by RGV250
Apologies to anyone who has looked into this, after a lot of googling it appears the use of iframes is frowned upon as it can slow things down to a crawl. If I put everything on one page it updates a lot faster, only issue now is to find out how to stop it redrawing everything everytime.

Still not sure why the switch does not work though.

Bob

Re: Web browser slows flowcode to a standstill

Posted: Tue Jan 31, 2023 7:43 pm
by BenR
Hello,

It was working quite well for me here, though the fact each of the sub pages refreshed at the same interval could be a cause of the problem.

I'll try it again on my work PC tomorrow as it's not anywhere near as fast as my home PC.

Re: Web browser slows flowcode to a standstill

Posted: Tue Jan 31, 2023 8:05 pm
by RGV250
Hi Ben,
I am in the middle of my fitness pub crawl at the moment, same as a normal one but they are further apart.
When I had all the vars all on the same single page it was a lot faster but I noticed the simulation appeared to pause for around 3 seconds (for only 5 variables). Not sure if this is just the simulation or if it would happen with real hardware.

Bob