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
My eagle eyes surrender... (Ruby Issue)
13 posts
• Page 2 of 2 • 1, 2
Re: My eagle eyes surrender... (Ruby Issue)
Yes, you don't understand. But I just don't know how to explain it in any other way.KG_is_back wrote:I think I don't understand what (you think) the issue is...
For example, you are so homed in on the counter (@cx), although I already said in my second post
tulamide wrote:Of course I resetted the value before calling the draw method in the original. This example code was just to make absolutely sure that the value changed from valid to invalid between the event happening and the execution. I experienced the very same with my original code.
Still you insist on it. It is not the reason for my problem. I don't know how else I can say it.
You also mentioned this several times:
KG_is_back wrote:you need "buffer", to store the finished block for later drawing (like in example 2. you used @v to store exact value of @cx when redraw was called, opposed to when the draw happened).
But I already said
tulamide wrote:I don't care when exactly the drawing will happen. In my main code there's a copy of the array that will be drawn (aka the buffer). And, as I already said, that works just fine. No issues. The issue arises only when I use the frame size to calculate the block size. If I hardcode the blocksize, it again works.
Ignoring issues like the "int instead of float" one is dangerous. For exampe, it means the difference of 1 frame of data. It also means a quicker flow, leaving less headroom. Etc.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: My eagle eyes surrender... (Ruby Issue)
Can you then describe in simple steps what you are trying to achieve? and what you expect the outcome to be vs. what it is? Because I believe I did explain behaviour in both scenarios correctly (1. resetting counter in event method = block will have fixed size and redraws will happen at cca.30fps 2. resetting counter in draw method = block will be bigger than anticipated and redraws will happen at <30fps)
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: My eagle eyes surrender... (Ruby Issue)
The more I try to make it run, the worse it gets. I'm not even sure anymore, if my example was the best one for my issue. I'll pm you with the real project in its current state.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
13 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 73 guests