Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411658 Posts in 69395 Topics- by 58451 Members - Latest Member: Monkey Nuts

May 15, 2024, 08:09:57 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Chipmunk Physics 5.2.0 released
Pages: [1]
Print
Author Topic: Chipmunk Physics 5.2.0 released  (Read 1051 times)
slembcke
Level 3
***



View Profile WWW
« on: February 22, 2010, 04:18:22 PM »

Another minor release. This time the big changes are some major solver optimizations to the solver to make it more CPU cache friendly as well as developing an Objective-C wrapper that makes developing Chipmunk code on the iPhone much easier.

Source
OSX Demo Binary

Changes Since 5.1.0:
  • OPTIMIZATION: Chipmunk structs used within the solver are now allocated linearly in large blocks. This is much more CPU cache friendly. Programs have seen up to 50% performance improvements though 15-20% should be expected.
  • FIX: separate() callbacks are called before shapes are removed from the space to prevent dangling pointers.
  • API: Shape references in cpArbiter structs changed to private_a and private_b to discourage accessing the fields directly and getting them out of order. You should be using cpArbiterGetShapes() or CP_ARBITER_GET_SHAPES() to access the shapes in the correct order.
  • API: Added assertion error messages as well as warnings and covered many new assertion cases.
  • NEW: Added convenience functions for creating box shapes and calculating moments.

We've also included an Objective-C wrapper as well as some sample code from shipping iPhone Apps. The primary advantages of a native Objective-C API include integrating with the Cocoa memory management model and the Chipmunk Object protocol. The Chipmunk Object protocol unifies the basic Chipmunk types as well as making it easy to create custom composite collections of the basic types. Additionally, the wrapper adds many convenience methods for doing common setup tasks as well as helper methods that integrate it with the rest of the Cocoa Touch API. The wrapper tries to do things the Objective-C way, adding useful method variations where it makes sense to do so.
Logged

Scott - Howling Moon Software Chipmunk Physics Library - A fast and lightweight 2D physics engine.
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic