World configuration data. More...
#include <playrho/d2/WorldConf.hpp>
Public Member Functions | |
constexpr WorldConf & | UseContactCapacity (ContactCounter value) noexcept |
Uses the given value as the initial contact capacity. | |
constexpr WorldConf & | UseProxyCapacity (ContactCounter value) noexcept |
Uses the given value as the initial proxy capacity. | |
constexpr WorldConf & | UseTreeCapacity (ContactCounter value) noexcept |
Uses the given value as the initial dynamic tree size. | |
constexpr WorldConf & | UseUpstream (pmr::memory_resource *value) noexcept |
Uses the given min vertex radius value. | |
constexpr WorldConf & | UseVertexRadius (const Interval< Positive< Length >> &value) noexcept |
Uses the given vertex radius range value. | |
Static Public Attributes | |
static constexpr auto | DefaultContactCapacity = ContactCounter(2048u) |
Default contact capacity. | |
static constexpr auto | DefaultDoStats = false |
Default do-stats value. | |
static constexpr auto | DefaultProxyCapacity = ContactCounter(1024) |
Default initial proxy capacity. | |
static constexpr auto | DefaultReserveBodyConstraints = BodyCounter(1024u) |
Default initial reserve body constraints capacity. | |
static constexpr auto | DefaultReserveBodyStack = BodyCounter(16384u) |
Default initial reserve body stack capacity. | |
static constexpr auto | DefaultReserveBuffers = std::uint8_t(1u) |
Default initial reserve buffers capacity. | |
static constexpr auto | DefaultReserveContactKeys = ContactCounter(1024u) |
Default initial reserve contact keys capacity. | |
static constexpr auto | DefaultReserveDistanceConstraints = ContactCounter{DefaultReserveBodyConstraints * 4u} |
Default initial reserve distance constraints capacity. | |
static constexpr auto | DefaultTreeCapacity = ContactCounter(4096u) |
Default tree capacity. | |
static const auto | DefaultUpstream = pmr::new_delete_resource() |
Default upstream memory resource. More... | |
static constexpr auto | DefaultVertexRadius |
Default vertex radius range. More... | |
World configuration data.
|
inlinestatic |
Default upstream memory resource.
|
staticconstexpr |
Default vertex radius range.
bool playrho::d2::WorldConf::doStats = DefaultDoStats |
Whether to collect resource statistics or not.
reserve*
data members to help avoid dynamic memory allocation during world step processing. Collecting these statistics incurs some performance overhead however, so consider disabling this setting after getting those data members tweaked to your needs. BodyCounter playrho::d2::WorldConf::reserveBodyConstraints = DefaultReserveBodyConstraints |
Initial reserve body constraints capacity in #-of-elements.
BodyCounter playrho::d2::WorldConf::reserveBodyStack = DefaultReserveBodyStack |
Initial reserve body stack capacity in #-of-elements.
ContactCounter playrho::d2::WorldConf::reserveContactKeys = DefaultReserveContactKeys |
Initial reserve contact keys capacity in #-of-elements.
ContactCounter playrho::d2::WorldConf::reserveDistanceConstraints = DefaultReserveDistanceConstraints |
Initial reserve distance constraints capacity in #-of-elements.
Interval<Positive<Length> > playrho::d2::WorldConf::vertexRadius = DefaultVertexRadius |
Allowable vertex radius range.
The allowable vertex radius range that this world establishes which shapes may be created with. Trying to create a shape having a vertex radius outside this range will be rejected.