Instead of imposing a memory limit why not impose an object limit? This would get around the overhead issue. For example, for the basic limits set the maximum number of objects on screen at any one time a maximum of 20.
I guess we could have an object limitation. although I don't want new rules added in the middle of the thread so people can easily miss them.
But... I guess it would be cool if more than 20 visible active objects causes slowdown, bar text. Say... half the frame rate. More than 30 halves it again.
Let me know if your game uses tons of objects. Don't want to render anyone's work useless.
I have a problem getting objects to be active and non-active. I'd like a counter that only shows objects that are visible in the frame so we can actually have a sprite/object limit of some sort.
The only way i can think of is to have a mask and an animation object for every sprite so i can easily display a certain amount at once and be able to see how many are in a frame.
Originally Posted by Akai_R Or you could include a blank mfa with your game when you post it. Just an idea!
If someone else posts his or her game before you, you could take that mfa (that might be larger than yours) and say it's one you generated.
Maybe you could post a blank MFA file, and make everyone download that as the source file with which they would build their project. Watermark it in some sneaky way so that you know that your blank MFA is the one you created.
Originally Posted by Akai_R Or you could include a blank mfa with your game when you post it. Just an idea!
If someone else posts his or her game before you, you could take that mfa (that might be larger than yours) and say it's one you generated.
Maybe you could post a blank MFA file, and make everyone download that as the source file with which they would build their project. Watermark it in some sneaky way so that you know that your blank MFA is the one you created.
I have a sneaky feeling that as soon as you open the blank mfa and edit it the file size is inflated dependant on your build and extensions.
I have temporarily postponed work on my game until we have established exactly what this limitation is going to be.
It looks like there are far too many variables to be able to include a filesize limit.
But we can still limit the amount of frames or the size of each frame. I guess the size of the frame roughly corresponds to the amount of Ram in a console/computer? So i guess it kind of makes sense.
Ive been trying to make some reliable flicker when there's more than 20 objects on screen. So basically if there's more than 20 'sprites' they will randomly vanish until there's only 20 showing.
But it's not working properly.
So for now i'm just going to actually make the game.