Framerate drops to 0 when I move the mouse over OS.
Framerate drops to 0 when I move the mouse over OS.
When I move my mouse continuously over the OS, the framerate drops to 0. Everything stands still. This causes jaggy avatar movement even with normal use.
Is there a fix in the horizon?
Is there a fix in the horizon?
This is a known behavior, and unfortunately it depends on the Flash Player. We made a number of tests using different browsers in different operating systems. Some combinations are better than others, but this issue is always there. Check this test in FireFox, for example:
http://www.gotoandplay.biz/_clients/eCa ... /test3.swf
The test doesn't involve OpenSpace: we simply create an high number of movieclips (just like inside an OpenSpace map). The nominal framerate is set to 30; on my MacBook Pro Core 2 Duo, if the mouse is outside the swf, the framerate is 28; as soon as I put the mouse on the swf it drops to 25 fps; if I keep moving the mouse, it drops to 20 fps.
I guess the more the movieclips (skins in OpenSpace) are complex, the more this behavior is evident.
Anyway, are you experiencing such issue with the default examples, or with your own implementation?
http://www.gotoandplay.biz/_clients/eCa ... /test3.swf
The test doesn't involve OpenSpace: we simply create an high number of movieclips (just like inside an OpenSpace map). The nominal framerate is set to 30; on my MacBook Pro Core 2 Duo, if the mouse is outside the swf, the framerate is 28; as soon as I put the mouse on the swf it drops to 25 fps; if I keep moving the mouse, it drops to 20 fps.
I guess the more the movieclips (skins in OpenSpace) are complex, the more this behavior is evident.
Anyway, are you experiencing such issue with the default examples, or with your own implementation?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Can we see your test? Can you publish it somewhere, or send us the map xml, the libraries and the config file? Also we would like to know which OS are you using, which browser, which version.
Also, are you using Flash Player 9 or 10? In our tests the FP10 seemed to reduce this issue a lot.
If you want us to take a look, send your files to our email address.
Also, are you using Flash Player 9 or 10? In our tests the FP10 seemed to reduce this issue a lot.
If you want us to take a look, send your files to our email address.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
http://dev.cyboria.ru:8080/v1.2/cyboria.html
Username and password to any. Computers - dual t2390 1.86ghz RAM2Gb
Mazzils, IE, Flash 9-10, XP-Vista - the result are the same everywhere. Libraries used as a demo, as well as their own.
For OpenSpace we paid - 2000 euros.

When you stir the mouse around the screen anywhere in the fps jumps within 0-5, using a walkable-tile
For browser games require computers of NASA unacceptable.
Username and password to any. Computers - dual t2390 1.86ghz RAM2Gb
Mazzils, IE, Flash 9-10, XP-Vista - the result are the same everywhere. Libraries used as a demo, as well as their own.
For OpenSpace we paid - 2000 euros.

When you stir the mouse around the screen anywhere in the fps jumps within 0-5, using a walkable-tile
For browser games require computers of NASA unacceptable.
I have tested with a 3 and 1/2 years old Mac, 2Ghz Intel CPU, 2Gb RAM.
Under Safari FPS is always at 25 whatever you do, stirring the mouse is irrelevant.
Using FireFox I get a 3 frames drop, from 25 to 22.
The Flash Player used is version 9 and you have to take into account that the Flash Player for the Mac is still not as good as the one for Windows.
In fact I've also tested on a PC with a recent Intel 2.4Ghz and the FPS was locked at 30fps, doesn't matter the browser (tested: IE7. FF3. Opera 9) or the mouse movement.
Honestly it sounds like you might have a specific problem on the machine you are using for testing or developing. It's not easy to guess but I might suggest one or more of the following reasons:
1- more than one instance of the same game open
2- few system resources (CPU/RAM) or too many other apps running in the background
2- too little VRAM. Is your video card an integrated one? How much memory is assigned to it?
Also, have you tried testing on some other machines?
thanks
Under Safari FPS is always at 25 whatever you do, stirring the mouse is irrelevant.
Using FireFox I get a 3 frames drop, from 25 to 22.
The Flash Player used is version 9 and you have to take into account that the Flash Player for the Mac is still not as good as the one for Windows.
In fact I've also tested on a PC with a recent Intel 2.4Ghz and the FPS was locked at 30fps, doesn't matter the browser (tested: IE7. FF3. Opera 9) or the mouse movement.
Honestly it sounds like you might have a specific problem on the machine you are using for testing or developing. It's not easy to guess but I might suggest one or more of the following reasons:
1- more than one instance of the same game open
2- few system resources (CPU/RAM) or too many other apps running in the background
2- too little VRAM. Is your video card an integrated one? How much memory is assigned to it?
Also, have you tried testing on some other machines?
thanks
The bug is caused by the number of clips added to the stage which are set to mouseEneabled = true and mouseChildren = true. If one clip is on top of each other flash dispatches an event from each clip under the mouse on mouse move.
We made a test and had a critical phase from about 1400 clips. 1500 clips on top of each other causes the fps down to 0 while moving the mouse. 1000 clips took practically no negative effect on the fps.
You can avoid this by setting mouseChildren oder mouseEnabled to false so lower clips or clips which dont need to have observation will be ignored.
Hope this will help
We made a test and had a critical phase from about 1400 clips. 1500 clips on top of each other causes the fps down to 0 while moving the mouse. 1000 clips took practically no negative effect on the fps.
You can avoid this by setting mouseChildren oder mouseEnabled to false so lower clips or clips which dont need to have observation will be ignored.
Hope this will help
Robhuhn: thanks for the infos.
The fact that at 1K you don't seem to get problems but at 1400 it sinks to 0fps is quite interesting
Doesn't sound like it's a progressive problem. It would be interesting how the same test behaves on different machines. Did you try on just one computer? Or more than one?
The fact that at 1K you don't seem to get problems but at 1400 it sinks to 0fps is quite interesting
Doesn't sound like it's a progressive problem. It would be interesting how the same test behaves on different machines. Did you try on just one computer? Or more than one?
We are aware of this, but in the current version of OpenSpace we can't set mouseChildren and mouseEnabled to false on tiles, as that would prevent making skins clickable (check the Ranch example, where the house doors can be clicked to change map).Robhuhn wrote:You can avoid this by setting mouseChildren oder mouseEnabled to false so lower clips or clips which dont need to have observation will be ignored.
This will be solved in the next version of OpenSpace, where map designers will be able to declare which skins can be clicked.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Hi there,
we had a similar problem in an adventure game built in AS 2.0 a little while back. In the end we found that deleting the onMouseMove property of the prototype of the Movieclip class resolved the issue (setting it to null did not work - it must still have been doing something!) I don't imagine anything equivalent is likely to be possible in AS 3.0 however due to the changes in the nature of the event system.
Anyway, we are considering purchasing a license for OpenSpace to use an upcoming project. Bax, you say that in the next version of OpenSpace we will be able to declare which tiles are interactive. Is there an estimated delivery date for this? The project I have in mind may be a little way off yet, but it would still be useful to know what the timescale is likely to be for the next OpenSpace upgrade!
cheers,
Alex H
we had a similar problem in an adventure game built in AS 2.0 a little while back. In the end we found that deleting the onMouseMove property of the prototype of the Movieclip class resolved the issue (setting it to null did not work - it must still have been doing something!) I don't imagine anything equivalent is likely to be possible in AS 3.0 however due to the changes in the nature of the event system.
Anyway, we are considering purchasing a license for OpenSpace to use an upcoming project. Bax, you say that in the next version of OpenSpace we will be able to declare which tiles are interactive. Is there an estimated delivery date for this? The project I have in mind may be a little way off yet, but it would still be useful to know what the timescale is likely to be for the next OpenSpace upgrade!
cheers,
Alex H