02-10-2024, 05:04 PM
It's all just a matter of doing the least possible amount of work inside a loop.
Put this sprite here. One command, rather simple.
Put this sprite here, but make it 10% taller. A little more complex and slower.
Put it here, 10% taller, 22% wider. Even more junk to do.
Put it here, 10% taller, 22% wider, at 212 degrees rotation. Now the CPU is starting to sweat a little...
Oh, and do this for all 60000 parts which I have on the screen -- even if 90% of them haven't changed shape or position at all!!
.... and this, my friends, is how you make your computer imitate an airplane with the fans inside it's enclosure. VVVVVVVRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUHHHHHHHRRRRRRRRRRRRRRRR!!!!!!!!!!!
Put this sprite here. One command, rather simple.
Put this sprite here, but make it 10% taller. A little more complex and slower.
Put it here, 10% taller, 22% wider. Even more junk to do.
Put it here, 10% taller, 22% wider, at 212 degrees rotation. Now the CPU is starting to sweat a little...
Oh, and do this for all 60000 parts which I have on the screen -- even if 90% of them haven't changed shape or position at all!!
.... and this, my friends, is how you make your computer imitate an airplane with the fans inside it's enclosure. VVVVVVVRRRRRRRRRRRRRRRRRRRRRRRRRRRUUUUHHHHHHHRRRRRRRRRRRRRRRR!!!!!!!!!!!