Slow fps when looking at a bunch of Boxes

ehnohpe said:
Ahhh! Its not working for me! Someone please post the working code! 8O

rofl
1 Like

Ehhhh… Here is exactly what ran when I ran what you just posted. GeometryBatchFactory must have it out for me…

ehnohpe said:
For some reason it still does not work. Maybe because Im using mac?

what do you mean by not working? can you be more specific? else I'm assuming you see low fps only

Yeah. There are 20014 objects and 4 fps.

ehnohpe said:
Ehhhh... Here is exactly what ran when I ran what you just posted. GeometryBatchFactory must have it out for me... http://i.imgur.com/hqqxV.png

that's with 20 thousand cubes, instead of just 2000, maybe you have a lower end computer/gfx card? I don't know
if I comment the line:
GeometryBatchFactory.optimize(terrain);
then I get 7fps, for the same 20k cubes, that's like 100 times less fps :)

EDIT: I guess you mean, that optimize() doesn't work for you?!

That is exactly what I am saying. Finally someone understands!

@ehnohpe

this may seem silly but are you running the latest jme3 from svn? ie. revision 7242 at the moment, because if you were running jme3 alpha 4 you might find that optimize() could work on r7242 (just guessing though)

yeah optimize has been changed recently, before it was returning the optimized mesh.

Update to last nightly or SVN and it will work

1 Like

You guys are going to hate this, but it isn’t working… still.

ehnohpe said:
You guys are going to hate this, but it isn't working... still.

maybe you're still using the same jmonkeyengine3.jar (or what's it called)
I, instead of adding that jar to my project, am always just using the jme3 project(from svn) , in eclipse that is, Java Build Path->Projects , Add , "jme3" (that's the `jme3 from svn` project in workspace)
So I don't need to always remember to run ant on the jme3 project whenever I update from svn

Finally finally finally it works! Thanks everyone who helped!!

Hi,



Sorry to dig up something old, but I was just trying this out, and ran into the same problem as ehnohpe.



I am using jMonkeyPlatform Alpha 4, and have fully updated it. However when I run it, it seems the optimise() is not working correctly.



How do I make sure that I am updated to the last nightly version from SVN?



What I do is use ā€œCheck for Updatesā€ under Help.



Thanks!

Its outlined in the manual, press F1.