wonderwhy-ER on DeviantArthttps://www.deviantart.com/wonderwhy-er/art/CDK-tests-2-1-132330754wonderwhy-ER

Deviation Actions

wonderwhy-ER's avatar

CDK tests 2.1

By
Published:
3.3K Views

Description

Very small update to [link]

As before. Drag objects with your mouse and pick algorithm in combo box. For more info check previous version from above link.

Was not intending to post it just yet and wanted to add some more things but... It turned out that CDK has even more problems :( Have no idea why so far... What I did was adding some animations/morphings to see how it effects things. It should not have effected them at all and show more potential for this thing. But it showed that in some cases CDK fails to do things correctly :( And I tough it was doing things correctly. You can see how with some of rotating objects it sees collision in other place then it happens. Probably something to do with wrong way of gathering transformation matrices. More and more reasons to forget about CDK so may be I will not add it in next test.

Also as there are more objects it shows better difference in performance between getPixel and getColorBoundsRect algorithms. Not shore but I see 2 times if not more performance gap between them. How is it for you?
Update: Hmm seems in browser picture is different. They are very close and sometimes getPixel eve wins some 10 milliseconds + over all performance of getPixel in browser gained some 20-30 milliseconds :confused: How is it for you in different browsers and stuff?
Image size
700x400px 50.58 KB
© 2009 - 2024 wonderwhy-ER
Comments30
Join the community to add your comment. Already a deviant? Log In
MakeGamesHappen's avatar
This kind of thing would do well on a blog post. I am always doing searches for optimization on the internet.