-
Is there an Event Limit?
I am approaching close to 2000 lines of events in a frame. 3 questions:
1. Is there a limit
2. Will having that much code in a frame, make your program a resourse hungry bastard.... :cough: :cough: iTunes.
3. Is it not suggested.
I notice my application runs slow for the first 3 or 4 seconds.
-
Re: Is there an Event Limit?
Its difficult to give precise help without knowing your coding, but heres some info
1. I dont think 2000 lines is too much.
2. Your program could be resource hungry, depending on how you programmed it. Of course if you have a number of groups that are disabled at the start of the frame and you only activate them when needed, then you should be able to keep resources lower.
for the first 3 or 4 seconds, i would check not to be using midi, and ensuring your coding is efficient. You might be doing alot of calculations or on screen processing at the start which you could delay (depending on what it is) till later.
I had a crossword puzzle that was programmed badly, and would take a second to update the screen, changing to a loop and programing more efficiently i was able to remove this refresh issue.
Jason
-
Re: Is there an Event Limit?
I think the only bad thing about having so many events and stuff (this must be a really big game) would be the file size of the finished product.
-
Re: Is there an Event Limit?
IIRC the amount of events that can be displayed at any one time was increased from 2,000 to 8,000 in b244 and increased again to 20,000 in b248.
Last I heard (around b244) there was a limit of 8000 events displayed at any one time in the event editor
Other limits: 128 conditions per event, 128 actions per event, 1000 unique objects in the frame (but 20000 overall in the frame) and 65500 images/sounds.
-
Re: Is there an Event Limit?
Thanks for all the information. I am shocked that MMF2 can handle all thoose events. It has come a long way from the stability of CNC & KNP, back in the day.
Hey JasonDarby, for instance would this event slow down a PC :
(Counter 1) = 1 ----> Set Alterbale String J to <INI, "Group","Item","String">
This event would occur in 20 objects all together.
Since the event is practically running non-stop, is that an event that is a resource drainer?
-
Re: Is there an Event Limit?
Hi Mike
I dont think that would be a resource drainer,.(always difficult to say). Mainly its drawing many items on on screen in one go where you may might get delays.
I tried to put a large number of edit boxes and active boxes on screen once in one go and that created a small delay at the start. In the end I was helped with progrmaming it the right way (removing alot of events and using a loop). Its things like that, that normally will catch you out.
If you are having problems on loading, then what i have done in the past if i am getting a delay is just drop the "Never" condition in sections of code and see how it starts up.. that way you can pinpoint the actual event that is slowing you down.
One other note, there is a small delay if you use Midi music at the start of the frame.
Jason
-
Re: Is there an Event Limit?
20,000 events, 128 conditions per event, 128 actions per event, 1000 unique objects in the frame (but 20000 overall in the frame) and 65500 images/sounds.
Well it's good to know that nobody ever in the entire world will ever exceed any of these limits.
-
Re: Is there an Event Limit?
In the original games factory, I think if you go more than about 150, it starts having problems and the events randomly delete themselves. Wasn't fun.
-
Re: Is there an Event Limit?
Thanks Jason. I am using a lot of active objects, edit boxes, but the good thing is I should be able to create them later and not all at once, so I am disabling create at start. Already I see a difference. I am not using Midi Music at all.
Yeah Hedge, back during CNC, which was awesome for the time, Crashes were common during extensive events, and usually hard to repair if an error did occur. MMF2 is extremely stable and is pretty much my favorite software, even compared to audio production software like Sonar Producer.
I hope one day clickteam would come out with a version of MMF2 designed for audio programming. I.E. Creating Drum Samplers. You can create a nifty sequencer in MMF2.
-
Re: Is there an Event Limit?
Quote:
Originally Posted by Joshtek
IIRC the amount of events that can be displayed at any one time was increased from 2,000 to 8,000 in b244 and increased again to 20,000 in b248.
Last I heard (around b244) there was a limit of 8000 events displayed at any one time in the event editor
Other limits: 128 conditions per event, 128 actions per event, 1000 unique objects in the frame (but 20000 overall in the frame) and 65500 images/sounds.
A few questions about MMF2 event limits:
[color:#3366FF]1) Do cloned objects count towards the 1000 "unique displayed object" limit?
2) Does b249 increase these limits any further?[/color]
-
Re: Is there an Event Limit?
1) In fact that's the only thing that counts. 1000 different kinds of objects (clones), 20,000 max duplicates.
2) no.
-
Re: Is there an Event Limit?
I've not slept much... Are you saying if I have an active object in my frame, say a snowball, I can only clone that snowball 1000 times in the editor? - But I could also clone a tree in that same frame 1000 times?
-
Re: Is there an Event Limit?
He means that you can clone it 1000 times in the frame editor (i.e. have up to 1000 different objects in the object list), and duplicate it 20,000 times (i.e. have 20,000 instances of objects in the frame).
AFAIK the maximum number of events is 16,000 in the build 249.
I don't remember if there is still a limit for the number of unique objects, but if Joshtek says it's 1000 then that must be true. :) Francois could confirm.
-
Re: Is there an Event Limit?
Yves, sorry to flog this one to death, but can you clarify one thing for me while we're here:
Does the 16,000 event limit apply to just events running at the time?
For example - if I have 4 groups of 10,000 events each, but only one group at a time will ever run - is that okay? (i.e. 40k lines of code, but only 10k running at one time max)
-
Re: Is there an Event Limit?
Hi Asholay. You will be ok with that as long the events are in Groups.
Marv
-
Re: Is there an Event Limit?
Not to go off topic but I have a question about the frame size.
Is there a Max size a frame can be width\height?
-
Re: Is there an Event Limit?
Yeah, 32768 pixels in width and height.
-
Re: Is there an Event Limit?
Wow!, Thanx for that info Nifflas
I can't imagine ever exceeding that
-
Re: Is there an Event Limit?
Actually, I updated my post. It's half of what I believed first (I thought it was 65535 but it is 32767). I was actually pretty close to the horizontal limitation in Knytt, the horizontal size of the world is only 367 pixels away from the limitation.
-
Re: Is there an Event Limit?
That's still very impressive, and now that I think about it I can imagine how one could exceed that.
-
Re: Is there an Event Limit?
And from then on, Nifflas' games had external levels. And Juni lived happily ever after.
-
Re: Is there an Event Limit?
There is also a limit of 128 events per event line or something like that, right?
-
Re: Is there an Event Limit?
Conditions Per Event:
128
Actions Per Event:
128
Marv
-
Re: Is there an Event Limit?
OK , so I did a little experiment!
I set the frame's height to 40000
I placed an object on the screen and set its Y position as far as I was allowed to place it (32767), Then I centered the scrolling to the objects Y position
I ran the frame and I was able to scroll the object down to the 40000, then it ran off the screen
Why is this?
Also I had a counter keeping track of the objects y position
-
Re: Is there an Event Limit?
I had a test app using 1000x1000 isometric grid with 64x32 size tiles which is 64000 width and it worked OK, so Nifflas you must be wrong about frame size
-
Re: Is there an Event Limit?
The frame size is limited to 32,768 pixels in the frame editor, mainly due to the spin controls used in the object position properties (not sure if there is another reason), and maybe also in some actions in the event editor (not sure at all, I don't remember) but at runtime it's limited to 2,147,483,648.
-
Re: Is there an Event Limit?
Quote:
Originally Posted by Jamie
And from then on, Nifflas' games had external levels. And Juni lived happily ever after.
and can approach that 20,000 limit while pasting with the active picture object >.< I've had that problem, too. System performance doesn't seem to degrade or hog memory when I past thousands and thousands of backdrops, but I'll still hit that hard maximum. But I've programmed around it by allowing my level editor to define a separate layer of "fake tiles" that display via text blitters where they don't need collision mapping. Allows me to make some pretty darn big levels without any need for partitioning or streaming loading
-
Re: Is there an Event Limit?
Err, his games only render the current position, not the entire world, so they're not subject to that limit.
-
Re: Is there an Event Limit?
These limits would be useful for the fusion wiki.
-
Re: Is there an Event Limit?
-
Re: Is there an Event Limit?
Quote:
Originally Posted by Yves
The frame size is limited to 32,768 pixels in the frame editor, mainly due to the spin controls used in the object position properties (not sure if there is another reason), and maybe also in some actions in the event editor (not sure at all, I don't remember) but at runtime it's limited to 2,147,483,648.
Ahh OK that explains why I can make big levels are runtime.
I do everything at runtime via events.
-
Re: Is there an Event Limit?
Quote:
Originally Posted by Asholay
Yves, sorry to flog this one to death, but can you clarify one thing for me while we're here:
Does the 16,000 event limit apply to just events running at the time?
For example - if I have 4 groups of 10,000 events each, but only one group at a time will ever run - is that okay? (i.e. 40k lines of code, but only 10k running at one time max)
This thread was about Event Limits. ;) Is 16k the maximum number events scrubbed through by MMF2 at once? So that Asholay's example is true and correct? If so, is 16k arbitrary or the maximum limit of the engine?
-
Re: Is there an Event Limit?
Let's say you have 4,096 groups. You can put 10,000 events in each group. You can open and close groups to run the 10,000 events just fine.
Take a look at the MMF2 Technical Manualon my website, under projects. It lists the limits in MMF2.
Marv