Mass redrawing for no obvious reason

For general discussion related FlowStone
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Mass redrawing for no obvious reason

Post by tulamide »

Since I already missed the info on how Flowstone deals with interpolation while drawing, I might have missed something here, too.

Can someone explain this to me (see fsm and follow exactly the comment)?
Attachments
redrawing.fsm
(1.2 KiB) Downloaded 823 times
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Mass redrawing for no obvious reason

Post by MyCo »

Interesting... just did some investigation.

Although this seems only to affect selected modules, there is a chance to speed up FS when this gets fixed.
Attachments
redrawing (tulamide, MyCo).fsm
(1.64 KiB) Downloaded 823 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Mass redrawing for no obvious reason

Post by tulamide »

It gets even more strange. I currently wonder if it has somehow to do with calling the output method. I've extended the schematic with a second module that will surprise you...
Attachments
redrawing (tulamide, MyCo) version 2.fsm
(2.22 KiB) Downloaded 842 times
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Mass redrawing for no obvious reason

Post by MyCo »

My guess is, that the output method forces a redraw of the output connector, and that redraw is forwarded to the module's GUI as well to draw its content below the output connector
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Mass redrawing for no obvious reason

Post by tulamide »

Yes, I think so, too. Had some testing with the sprite font project. Remember that I complained about continous redraws? It's because of the output triggers. They can cause feedback loops, and that's what's happening there (A char list is drawn, the number of rows is sent to a slider. The slider takes it as input and sends out the current position. As soon as both are directly adjacent, one of those "redraw areas outside the view area" triggers redraws, which forces the loop).
"There lies the dog buried" (German saying translated literally)
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Mass redrawing for no obvious reason

Post by Walter Sommerfeld »

Well, i also noticed this behaviour before... :(

.. and ended up using an external redraw via prim!
I also used a ruby area output to minimize CPU load...

Had no time to mention this before... :geek:
Post Reply