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...
23 posts
• Page 1 of 3 • 1, 2, 3
I see a steppy line drawing under 60Hz...
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.
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.
- Nowhk
- Posts: 275
- Joined: Mon Oct 27, 2014 6:45 pm
Re: I see a steppy line drawing under 60Hz...
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.
If you drag the drawn cursor window out vertically,
you will see that the angled effect is accentuated.
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: I see a steppy line drawing under 60Hz...
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...
Here is a real old school cursor mate.
Maybe some hero can mine your Ruby
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: I see a steppy line drawing under 60Hz...
nix wrote:
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...
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...
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
On the MIDI sequencer, I would draw at each step.
This is a bug Nowhk, we can't do anything except let MyCo know
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: I see a steppy line drawing under 60Hz...
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,
but it shouldn't happen! i also tried 25ticks to update but same effect,
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: I see a steppy line drawing under 60Hz...
GDI = no vertical sync
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: I see a steppy line drawing under 60Hz...
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...
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
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
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
23 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 46 guests