animation flickering

3 views
Skip to first unread message

Harri

unread,
Oct 24, 2011, 3:53:01 AM10/24/11
to Cartagen
In my previous posts one can see how the dotted lines and animation
was added to Cartagen. However, now with newer releases of webkit
based browsers and with more complex maps (not very complex in terms
of real-life maps, but say above 50 ways) in Firefox the animation
starts flickering light Christmas lights.

See examples:

Firefox 7.0.1 (mac):
http://www.youtube.com/watch?v=gXW88bZgQKQ

Safari 5.1.1 (mac):
http://www.youtube.com/watch?v=YW8mTeKOzaw

To me it seems that the way is redrawn before the animation is
finished, I tried to overcome this by adjusting the interval in
TimerManager and altering the run function in the same to default to
the set interval instead of a hard coded value of 50. Otherwise the
timer manager would only initially wait the interval amount of time
but latter redraws would occur every 50 ms.

If I set Cartagen.paused to true nothing gets drawn at all.

Any ideas how to prevent the redrawal unless something is really
happening (like mouse move, zoom etc.)

Harri

Jeffrey Warren

unread,
Oct 25, 2011, 11:21:00 AM10/25/11
to cartag...@googlegroups.com
Hi, Harri - i'd love to help out but you know it would really be a gesture of good faith to post your code with the dotted-lines etc. I'm happy to help you get set up in Git/Github.com, and if you send me a .zip of your codebase i can even just create a fork for your work in my own account if you don't have time to start a GitHub account yourself.

This is important not only so that others can benefit from your adaptations and improvements, but so that you get due credit for your changes!

Jeff


--
You received this message because you are subscribed to the Google Groups "Cartagen" group.
To post to this group, send email to cartag...@googlegroups.com.
To unsubscribe from this group, send email to cartagen-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cartagen-dev?hl=en.


Harri

unread,
Oct 28, 2011, 5:32:11 AM10/28/11
to Cartagen
Yes,

I thought I have posted the diffs in earlier posts as well.

As I made the changes to the assembled cartagen.js, I had to merge the
changes with the git version I had checked out (which differed from
the version I had made the changes to). I could not get rake build to
work (something wrong with my Ruby installation after installing Lion,
perhaps):

air:cartagen hohteri$ rake build
(in /Users/hohteri/Projects/cartagen-read-only/cartagen/public/
cartagen)
rake aborted!
uninitialized constant DateTime
/Users/hohteri/Projects/cartagen-read-only/cartagen/public/cartagen/
Rakefile:40:in `build'
(See full trace by running task with --trace)

However I have the tar file with my changes into the git checkout I
have done in May, I will send it to you.

I could test if the changes work similarly to my current cartagen.js
if I can get it to build.

Harri

Jeffrey Warren

unread,
Oct 28, 2011, 10:44:05 PM10/28/11
to cartag...@googlegroups.com

Fantastic.  Ill attempt a merge and share a fork sometime this coming week. Then we came take a crack at the flickering issue.

Reply all
Reply to author
Forward
0 new messages