Three Dimensional
-
A few years ago, I uploaded a project to the hub called Three Dimensional. It's the only project on the hub with actual 3D at this time (isometric, no perspective). It's very very laggy. When I made that, I didn't even know how the 3D maths worked, I just found some formula on the internet and used that. I am thinking of remaking the whole thing from scratch because I've finally worked out how to make 3D myself, and I've done it way better than before.
Here's a pic of what had to happen on a timer to move points in 3D:
Now here is what I've got working in a separate project:
The old one could render a cube at just under 10FPS on my iPad Air while updating the points positions on a 0.1s timer. The new one stays at 60FPS while updating positions on a 0s timer.
Quick video of new test project:
0_1561413360099_71834F8E-F72C-4F87-817C-86B5D9E10A91.MP4 -
Wowies! 😱
So you just found a huge fix for the lag, this is buttery smooth.
-
Very cool to see you updating this! Impressive to see how much you've learned and able to improve the performance so much.
-
-
So it seems it's the faces that cause the biggest problems with this, once I added all the faces to the cube and had everything updating on 0s timers, it became quite laggy. It's still better than what it used to be though.
Points updating every 0.1s but moving smoothly, faces every 0.1s but not smooth: 0_1562636748362_9ED684B2-4964-4520-8FDA-170409D82A3F.MP4
Faces updating every 0s (big frame rate drop): 0_1562636772122_12D26D09-2856-4FE9-8D55-CA4F16D51953.MP4
Faces updating every 0.1s and transforming "smoothly" (this just looks ridiculous, I feel like I should put an epilepsy warning here): 0_1562636890094_4B8C4623-C1A5-47E3-84B1-3CBE8F72FAA0.MP4
-
Wow, this is amazing! 😱
This is one of the things I can't achieve myself.