Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1174 double get variable #1212

Merged
merged 2 commits into from
Oct 5, 2015
Merged

1174 double get variable #1212

merged 2 commits into from
Oct 5, 2015

Conversation

dethe
Copy link
Member

@dethe dethe commented Oct 5, 2015

OK, finally tracked it down for sure.

I thought errors in the new Date blocks were a clue, but that was just a problem I missed in the code review: we were mutating the arguments, so they were getting changed over and over. I fixed that to clone the arguments instead and date blocks work fine now.

Then I dug some more into the per-frame runtime. I had put some code in last time I worked on this to ensure there was only one handler registered at a time, and to delete that handler when we restarted the script. I put in a quick test to make sure this was working, and that test failed. So I tracked it down to one place where I had forgotten to update the variable holding the current frame runner. Fixed that spot, ran the test and all was well. Could hit play any number of times and the waterbear wouldn't speed up. The Simple Bounce is always going the same speed now too.

@ghost
Copy link

ghost commented Oct 5, 2015

Ahh yes I did mean to check about creating a new date object. Thanks for catching that. All these changes look good to me.

dethe added a commit that referenced this pull request Oct 5, 2015
@dethe dethe merged commit f3a8fb2 into master Oct 5, 2015
@dethe dethe deleted the 1174_double_getVariable branch October 5, 2015 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant