Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Improving the redrawing that freeze the application

For general discussion related FlowStone

Improving the redrawing that freeze the application

Postby Nowhk » Sun Jan 03, 2016 1:11 pm

This schema is very basic: 4 monitor that show a wave form and move a cursor over it (I've used basic Tick25 for timing; but that's does not matter now):

heavy redraw.fsm
(26.91 KiB) Downloaded 889 times

Open the file, select an audio source (otherwise you see nothing), resize the Flowstone windows and try to move it around the desktop: you will see that the movement are freeze and slow. It seems that FlowStone are using lots of resources to draw those 4 cursors movements.

I'm just at the basics of drawing. I'm sure it can do better than this. But where am I wrong?

Linking double time the V on redrawing? Tick25 is quite slow, why it use lots of resources?
I'm a noob yes, so of course I did somethings wrong :lol:

Can you help me to figure it out? Happy new year!
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Improving the redrawing that freeze the application

Postby nix » Tue Jan 05, 2016 8:11 am

Heya Nowhk,
You aren't actually redrawing anything there at the moment.
Moving the window is pretty responsive here though.
Maybe you could try a more powerful graphics card?
Cheers, u have a fine year
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Improving the redrawing that freeze the application

Postby Nowhk » Tue Jan 05, 2016 12:21 pm

Uhm? Yes man the redraw prim inside the module. Who moves the cursor otherwise? Remember to connect audio device, else nothing will move of course.

The graphic card is power enough, trust me :D
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Improving the redrawing that freeze the application

Postby Xtinct » Tue Jan 05, 2016 12:47 pm

Perfectly normal behaviour for timing / redraw using green.
Xtinct
 
Posts: 106
Joined: Fri Feb 11, 2011 12:06 am

Re: Improving the redrawing that freeze the application

Postby Nowhk » Tue Jan 05, 2016 12:52 pm

Xtinct wrote:Perfectly normal behaviour for timing / redraw using green.

What do you suggest for draw the cursor at that speed keeping fluid movement of windows?

I think that what slow down the responsive its the number of redraw. But its 25 per seconds (x4), not a great deal for a computer I guess.
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Improving the redrawing that freeze the application

Postby tulamide » Tue Jan 05, 2016 1:58 pm

The answer to this question was given to you 6 weeks ago.

http://www.dsprobotics.com/support/viewtopic.php?f=2&t=3831#p21170

Nothing has changed since then ;)
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Improving the redrawing that freeze the application

Postby Nowhk » Tue Jan 05, 2016 2:03 pm

tulamide wrote:The answer to this question was given to you 6 weeks ago.

http://www.dsprobotics.com/support/viewtopic.php?f=2&t=3831#p21170

Nothing has changed since then ;)

Man? I'm not talking here about timing/sync/precision.
Here the problem is that when the cursors I set move, the interface response is slow and frozen. Looks like FS est lots of resources on drawing, and I need to improve this mechanism. Do you see? :shock:
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Improving the redrawing that freeze the application

Postby tulamide » Tue Jan 05, 2016 2:11 pm

Nowhk wrote:Do you see? :shock:

The real issue is that you don't see. I tried my very best to give you at hand what all programmers are using to reduce cpu-load.
I won't answer any of your questions again. And never try to be sniffy again. It won't serve you well.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Improving the redrawing that freeze the application

Postby Youlean » Tue Jan 05, 2016 4:57 pm

There are many thing that you can done to improve drawing performance. First tho are to use redraw area and to resample array before line draw. There also some advanced tricks that could improve hugely performance, but these are depended on actual app workflow (it is not general).
Attachments
heavy redraw fix Youlean.fsm
(194.1 KiB) Downloaded 910 times
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Improving the redrawing that freeze the application

Postby Nowhk » Wed Jan 06, 2016 11:12 am

tulamide wrote:The real issue is that you don't see. I tried my very best to give you at hand what all programmers are using to reduce cpu-load.
I won't answer any of your questions again. And never try to be sniffy again. It won't serve you well.

I'm really sorry you think this of me :( I am a guy that try to learn from the top to the bottom every kind of aspect in what I'm doing (try watch my post on IL forum for example, or ask Youlean or Perfect Human). I try to learn every day (I've also print a real copy of the FS manual and I read day per day). What I ask here is somethings different of what you have replied, maybe a misunderstanding. Anyway, thanks again for the help you give me in the past, and sorry if I hit you and waste your time.

Youlean wrote:There are many thing that you can done to improve drawing performance. First tho are to use redraw area and to resample array before line draw. There also some advanced tricks that could improve hugely performance, but these are depended on actual app workflow (it is not general).

Hey master, how are you? :) Sorry, but its the same. Nothing change...

:cry: I think you don't get what I mean as "slow" and frozen. Due to my crap english.

Its not timing, sync or movement of the cursors.

Its the application/plugin itself that is really jerk when I move its windows on the desktop (i.e. the plugin inside FL Studio and other windows/graphics for example). Resize flowstone (50% of its size, just the size of the plugin for example) and move the window in the desktop with audio on/off (thus, enabling/disabling cursors over the waveform).

With cursor moving, it's slow, lots of jerks, and the user experience its not so good. On other VST there is no problem.
Also, if I add other 4 monitors in the plugin (keeping CPU usage of 1/2%; so nice) the graphics in FL Studio got crazy and slacken. For example even the time cursor on the transport bar become not fluid.

I wrong somethings on calling Redraw I guess? Too much operations? I can't really figure it out why FS process graphic in this way with my project...
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Next

Return to General

Who is online

Users browsing this forum: Google [Bot] and 62 guests