Web browser slows flowcode to a standstill

For general Flowcode discussion that does not belong in the other sections.
Post Reply
RGV250
Posts: 283
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Web browser slows flowcode to a standstill

Post 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 80 times
Also there is a switch disabled in the webserver macro, this does not appear to work butt he decisions above do??

Regards,
Bob

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Web browser slows flowcode to a standstill

Post 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

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: Web browser slows flowcode to a standstill

Post 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.

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Web browser slows flowcode to a standstill

Post 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

Post Reply