Latertater / jbox2d

Automatically exported from code.google.com/p/jbox2d
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Fixed some repeated allocations in 2.1.2 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Islands.java there is an erroneous >= that should be a >.

There is also a repeated allocation in World.java.

I have attached a patch file with the fix.

With the fix I get no allocations in the trace, even when running for a long 
period.

It does seem that 2.1.2 is a bit slower, my FPS drops from 20 to 12 when using 
the 2.1.2 as opposed to the 2.0.1.

Original issue reported on code.google.com by kenneth@hexad.dk on 7 Feb 2011 at 10:13

Attachments:

GoogleCodeExporter commented 9 years ago
thanks a bunch for this, just commited

Original comment by toucansa...@gmail.com on 28 May 2011 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by toucansa...@gmail.com on 28 May 2011 at 5:55