Event skip bug fix
Author: | DerbiaN
|
Submitted: | 9th February, 2004
|
Views: | 7340
| Rated: |
|
|
For those of you that don't know, there is a bug in MMF that causes the runtime to skip every about 65000th event. While it will rarely cause problems for smaller apps, it can be a very annoying problem for the more complex ones, because having a lot of events will of course cause it to appear more often. It happens the same way with both fastloops AND normal events.
Let's say the app processes 200 events per loop. MMF runs the loop 50 times per second, so that makes it 10000 events per second. This means that about every 7th second an event will be skipped, so it might indeed cause problems.
The bug is easy to reproduce; just make an app with a fastloop "add 1 to counter", then run the fastloop always 10000 times, and every 7th time it will add 9999 instead of 10000.
Fortunately, there seems to be an easy way to completely remove this skipping.
At least for me, simply adding this one event to a frame fixes it:
-Start of frame
-Pick All Objects In Zone (make it so big that every object is chosen)
+Create a dummy action so that MMF won't delete the event at runtime
The objects that are created at runtime can't be chosen by the event, but they seem to work properly even without the fix.
|
|
DerbiaN
Registered 27/03/2003
Points 512
|