File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,11 @@ int main(void)
173
173
data_cache_hit_writeback (&viewport, sizeof (viewport));
174
174
175
175
/* Initalize bullet physics stuff */
176
- btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration ();
176
+ // We need to lower the default memory heap sizes to fix within the N64 memory limitations
177
+ btDefaultCollisionConstructionInfo constructionInfo = btDefaultCollisionConstructionInfo ();
178
+ constructionInfo.m_defaultMaxCollisionAlgorithmPoolSize = 512 ;
179
+ constructionInfo.m_defaultMaxPersistentManifoldPoolSize = 512 ;
180
+ btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration (constructionInfo);
177
181
btCollisionDispatcher* dispatcher = new btCollisionDispatcher (collisionConfiguration);
178
182
btBroadphaseInterface* overlappingPairCache = new btDbvtBroadphase ();
179
183
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
You can’t perform that action at this time.
0 commit comments