Page 1 of 3
I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 9:19 am
by Nowhk
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):
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.
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 2:53 pm
by nix
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.
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 3:40 pm
by Nowhk
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?
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 3:58 pm
by nix
Here is a real old school cursor mate.
Maybe some hero can mine your Ruby
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 4:55 pm
by Nowhk
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:
For small height, it seems a little bit better:
but now the cursor become "blinking". Not really nice...
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 5:19 pm
by nix
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
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 5:46 pm
by Nubeat7
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,
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 5:50 pm
by Tronic
GDI = no vertical sync

Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 5:58 pm
by Nowhk
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".
Re: I see a steppy line drawing under 60Hz...
Posted: Thu Mar 03, 2016 7:06 pm
by nix
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