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

I see a steppy line drawing under 60Hz...

For general discussion related FlowStone

I see a steppy line drawing under 60Hz...

Postby Nowhk » Thu Mar 03, 2016 9:19 am

Not sure why of this. The code is pretty easy and immediate. I've taken some pieces of the learning I've got in the last month here in the forum, thanks to you.

For some reason, I don't understand why the progression of this cursor/straight line over a black background is drawn "steppy" (open the schematic and hit a note):

straight line steppy.fsm
(6.9 KiB) Downloaded 875 times

DSP code generate 50 values per second (50<60hz; human should see it without problem), but I'm not able to tell FlowStone to draw a straight line. It seems that in the bottom half of it the drawing it is delayed by 1 pixel.

How would you fix it? Redraw Area only for the straight line? But it will call the draw method as well, so the task will draw the previous background as well.
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: I see a steppy line drawing under 60Hz...

Postby nix » Thu Mar 03, 2016 2:53 pm

What's happening is that the line is not straight for some reason.
If you drag the drawn cursor window out vertically,
you will see that the angled effect is accentuated.
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: I see a steppy line drawing under 60Hz...

Postby Nowhk » Thu Mar 03, 2016 3:40 pm

nix wrote:What's happening is that the line is not straight for some reason.
If you drag the drawn cursor window out vertically,
you will see that the angled effect is accentuated.

Yes. If you enlarge the window vertically you will notice this effect even more. How would you fix it?

I believe I can draw a dynamic vertical cursor :)

Manual says somethings about draw and "sluggish" effect (page 131 of the User Guide), but when it try to teach us how to (maybe) fix it using Redraw Area, the manual is wrong and the duplicate picture fail the explanation.
I'm not sure this will fix it though, but I believe in a solution...

Heroes? Are you there?
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: I see a steppy line drawing under 60Hz...

Postby nix » Thu Mar 03, 2016 3:58 pm

DS_RC2015.fsm
(371.93 KiB) Downloaded 893 times


Here is a real old school cursor mate.

Maybe some hero can mine your Ruby
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: I see a steppy line drawing under 60Hz...

Postby Nowhk » Thu Mar 03, 2016 4:55 pm

nix wrote:
The attachment DS_RC2015.fsm is no longer available


Here is a real old school cursor mate.

Maybe some hero can mine your Ruby

It suffers the same problem if you increase the height:

DS_RC2015_3.fsm
(99.57 KiB) Downloaded 863 times

For small height, it seems a little bit better:

straight line steppy_2.fsm
(7.49 KiB) Downloaded 841 times

but now the cursor become "blinking". Not really nice...
Last edited by Nowhk on Thu Mar 03, 2016 5:49 pm, edited 2 times in total.
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: I see a steppy line drawing under 60Hz...

Postby nix » Thu Mar 03, 2016 5:19 pm

the blinking is to do with integers.
On the MIDI sequencer, I would draw at each step.

This is a bug Nowhk, we can't do anything except let MyCo know
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: I see a steppy line drawing under 60Hz...

Postby Nubeat7 » Thu Mar 03, 2016 5:46 pm

i think the problem lies in the way how the ddrawing is done, it looks like that it redraws in rows from top to bottom but before it could finish, the next redraw already happens, maybe its also the crappy windows graphics...

but it shouldn't happen! i also tried 25ticks to update but same effect,
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: I see a steppy line drawing under 60Hz...

Postby Tronic » Thu Mar 03, 2016 5:50 pm

GDI = no vertical sync :(
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: I see a steppy line drawing under 60Hz...

Postby Nowhk » Thu Mar 03, 2016 5:58 pm

Tronic wrote:GDI = no vertical sync :(

So, using Redraw Area save resources than Redraw the whole View; thus, if we are lucky (without using big height), we won't see that steppy line because of saving resource (this is not guaranteed anyway; it will depends by graphic card as well).

A sort of agreement? Is there any other way to do it?
And if this is the only road, what's about blinking cursor? I don't get what nix means with "integers".
Last edited by Nowhk on Thu Mar 03, 2016 7:18 pm, edited 1 time in total.
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: I see a steppy line drawing under 60Hz...

Postby nix » Thu Mar 03, 2016 7:06 pm

I might be wrong,
but certainly in DS I was using a full integer step before the line steps,
so float values are ignored in the DS cursor originally
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Next

Return to General

Who is online

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