TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::physics::jolt_settings Struct Reference

Jolt-specific context configurations These are going to be internally integrated to jolt_context. More...

#include <jolt_components.hpp>

Public Attributes

uint32_t allocation_amount = 10 * 1024 * 1024
 
thread_type thread_type = thread_type::default_system
 Specifying which threading system to use for Jolt.
 
uint32_t physics_threads
 
uint32_t max_jobs_power = 10
 
uint32_t max_barriers = physics_threads * 16
 
bool enable_multithread = true
 
uint32_t max_bodies = 16384
 
uint32_t max_body_pairs = 32768
 
uint32_t max_contact_constraints = 8192
 

Detailed Description

Jolt-specific context configurations These are going to be internally integrated to jolt_context.

As these parameters currently are going to be specific to Jolt.

These parameters are also only specific to the construction-level, not initiation level of the API's

Remarks
Min and max world bounds are values that are artbitrary (in other words limit the simulation space) as JoltPhysics has a limit on distance for its limitation in simulation space

Member Data Documentation

◆ physics_threads

uint32_t atlas::physics::jolt_settings::physics_threads
Initial value:
=
std::max(1u, std::thread::hardware_concurrency() - 2)

The documentation for this struct was generated from the following file: