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

Step branch #1

Merged
merged 261 commits into from Jul 21, 2016

Conversation

Projects
None yet
1 participant
@pvdz
Owner

pvdz commented Jul 21, 2016

Use this PR to step through the commits. Github won't otherwise create the prev/next links.

pvdz added some commits Feb 18, 2016

Shuffle logic around to use free space. the data+1 and +2 are either …
…0 or nonzero, which translates to falsy, which suffices for us. so we can always assign it rather than conditionally
Caching a division is only shorter if you use it more than twice. Mov…
…ed the vx/vy update such that we can immediately store it to pixel.

pvdz added some commits Feb 27, 2016

1.34 / 1138 / 1063; look im not happy but i need to limit the number …
…of pixels for performance. though the +6 hurts for adding 10 of which 5 or 6 should be regpacked away. but oh. well.
1.35 / 1137 / 1059; basically leverage the element string and rename …
…the vars in `X=Y=i=q` to `B=C=N=O=F`, and adding that dud `F` so regpack finds the dupe in the element string at no additional cost. maybe we can use the `F` somehow later
1.35 / 1135 / 1055; Added the `N` to the bcnof chain (did not change …
…anything but probably wont hurt either). changed PSCl to mimic the element string as well. saves 4.
1.35 / 1135 / 1055; honestly this is just to remove some annoying col…
…oring warning in my ide :p nonsens but the change doesnt change anything and i cant find a use for that unused zero (or its space in general) so this is fine.
1.33 / 1123 / 1042; can have it if i drop the hor align as well but p…
…ositional compensation is too awkward. but its fine for vert centering, we dont need that.
1.46 / 1124 / 1032; cheat two bytes by reading the image data from 1 …
…and 2 rather than 0. i am kind of worried that this may lead to errors but it seems to be ok
1.45 / 1120 / 1026; SO CLOSE. so instead of detecting `.` and replaci…
…ng that with `Uu`, we can safely check for `u` and prepend a `U`. so only prepending one character having no other downsides AND we dont need to take the second character from the match meaning we can drop the `[1]` as well. 2 left.
1.45 / 1116 / 1024; YEEHAW!! :D was able to leverage the color index …
…and replace those `h=0 h=1 h=1` with `h++`, especially since it was already getting initialized by an arbitrary number, which means the increment of `h` was part of those identical `fillText` calls. hot digity, now all thats left is tweaking the numbers
1.45 / 1113 / 1021; doh. the `!` was only needed to transform the run…
… function from a declaration into an expression. but of course assigning to `N`, which we only need to have been declared before reading it, suffices for this. _now_ we are ready for the fix which brings us back up to 1024
1.45 / 1116 / 1024; fix pixels toggling size every now and then. this…
… was caused by the loop variable being assigned `1` or `-1` depending on the outcome of the affected line. this problem isnt very apparent with the current pixel sizes (though still present) but will be now that we will tweak the numbers a bit
1.44 / 1115 / 1023; fix the qfox.nl text not moving left and right. t…
…he roulette decides to work in my favor and give me free byte bonus. joy.
1.44 / 1116 / 1024; oof, needed that byte after all. turns out the `N…
…=function` hack did not work (and i did not test it, or screwed up the test). the `N` binding is only created after the function is invoked, which is too late. oops. anywyas, confirmed that the minified build works now :)
1.44 / 1111 / 1022; cheesyweesy it took me the better part of a Sunda…
…y to find a byte to be able to fix this bug that nobody would ever notice anyways. but the element number wasnt bound so when the elements would loop, the counter would keep going up. Of course, `%118` is four characters more than i had. Solved it by moving the `match` to the cycle loop. Not happy but perf seems okay on it so meh.

@pvdz pvdz merged commit aa9ef8d into master Jul 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment