Commit Graph

10192 Commits

Author SHA1 Message Date
Lasse Öörni
c554abccb8 Fixed crash related to incorrect constraint reference tracking. 2012-05-06 17:50:26 +00:00
Lasse Öörni
b636b3a211 Keep track of constraints to release them properly before deleting the rigid body. 2012-05-06 16:20:59 +00:00
Lasse Öörni
5f66411903 Fixed missing calls to MarkNetworkUpdate() in Constraint.
Cleaned up applying constraint limits.
2012-05-06 13:12:27 +00:00
Lasse Öörni
011c8e8e8f Updated version history for impending new release. 2012-05-06 12:38:07 +00:00
Lasse Öörni
0c98c92182 Do not create a new directional light when drawing a fullscreen quad. 2012-05-06 12:33:29 +00:00
Lasse Öörni
8cdc6f69d2 Properly clean up event handlers referring to a deleted object.
Added cone twist constraint.
Added angular motion limits to the slider constraint.
Improved batch group hashing.
2012-05-06 11:59:47 +00:00
Lasse Öörni
4335295b87 Added slider constraint. 2012-05-05 23:10:45 +00:00
Lasse Öörni
8b366d2db8 Set up hinge constraint frames manually. 2012-05-05 21:16:08 +00:00
Lasse Öörni
5570d120a1 Added DebugNew.h include to Scene. 2012-05-05 18:36:15 +00:00
Lasse Öörni
3ad1136dcb Added missing include. 2012-05-05 18:21:46 +00:00
Lasse Öörni
54c7de95d8 Tidied up Container code.
Added more asserts to shared/weak pointers.
Store per-object event handlers into a linked list instead of a map.
2012-05-05 17:35:39 +00:00
Lasse Öörni
e5d42e36c8 Generalized the constraint code to save the other body relative position/axis, instead of world relative position/axis.
Constraint code cleanup.
2012-05-03 21:51:54 +00:00
Lasse Öörni
3203ee410f Take node scale into account when offsetting the constraint.
Use the constraint's local position for editing, but save a hidden world position attribute for static constraints to potentially combat limit violation error in repeated scene save/load.
2012-05-03 20:17:23 +00:00
Lasse Öörni
5c4904288a Fixed hinge constraint breaking.
Fixed constraint not being created if rigid body did not initially exist.
Changed constraint position & axis to be serialized in world space for reliability.
2012-05-02 22:13:09 +00:00
Lasse Öörni
9123d1c3d3 Eliminated unnecessary recreation/readdition of physics components when attributes change.
Increased the default smoothing snap threshold.
2012-05-01 22:09:33 +00:00
Lasse Öörni
ef421ef32d Initial Bullet constraint implementation.
Changed DrawDebugGeometry() to be a virtual function in Component.
2012-05-01 19:26:29 +00:00
Lasse Öörni
2c5a034bf5 Fixed includes. 2012-04-30 17:45:10 +00:00
Lasse Öörni
a556679a42 Fixed crash caused by assigning Geometry shared ptr's in multiple threads. 2012-04-30 16:29:23 +00:00
Lasse Öörni
d62812df86 Comments cleanup and Batch refactoring. 2012-04-30 15:21:22 +00:00
Lasse Öörni
4548687d1b Set Skybox distance to a fixed 0.
Store StaticModel per-geometry extra data to a structure instead of separate arrays.
2012-04-29 21:22:25 +00:00
Lasse Öörni
48190acfca Eliminated most virtual function calls from getting Drawable batches. 2012-04-29 18:20:44 +00:00
Lasse Öörni
31e027b354 Maximum amount of sorted instances can be configured in Renderer. By default 1000.
Moved the NetworkState pointer back to Serializable, as there was not much practical benefit.
2012-04-29 16:20:23 +00:00
Lasse Öörni
a7494cedc4 Removed NetworkState pointer from Serializable for better class memory layout control. 2012-04-29 13:36:46 +00:00
Lasse Öörni
a84ed27df9 Updated to AngelScript 2.23.1.
Removed link time code generation from the release build as it greatly increases compile time, but does not seem to provide observable performance benefit.
2012-04-29 13:10:22 +00:00
Lasse Öörni
e6fe0d6cf0 Removed convenience GetWorldTransform() from Component to make it explicit that an indirection to the parent node is being made.
Added inverse transform caching to Zone.
Added light nullcheck to Batch.
2012-04-29 12:01:37 +00:00
Lasse Öörni
132847926d Do not unnecessarily calculate batch sort key or choose shaders for instanced batches. 2012-04-29 10:43:45 +00:00
Lasse Öörni
ecdfec3e80 Small optimization to drawable collecting. 2012-04-28 17:50:30 +00:00
Lasse Öörni
e1bd04e5dd Store batch groups into a HashMap for slightly better performance. 2012-04-28 17:37:01 +00:00
Lasse Öörni
25fa4a2926 Optimized drawables' view space Z range calculation. 2012-04-28 15:30:08 +00:00
Lasse Öörni
b4330ccc46 Optimized CheckVisibilityWork. 2012-04-28 13:24:52 +00:00
Lasse Öörni
092c6e5bb5 Correct the minimum Z if no geometries at all. 2012-04-28 12:22:59 +00:00
Lasse Öörni
987a168d9e Optimized away unnecessary structures from View. 2012-04-28 12:11:55 +00:00
Lasse Öörni
dbbf2f3310 Do not use octree query to find zone. Instead mark the drawable's zone inconclusive (temporary) if necessary. 2012-04-28 10:49:42 +00:00
Lasse Öörni
d8eb85b9b4 Added SphereCast function to PhysicsWorld.
Applied kNet bugfix.
Restored custom kNet UDP flow control mechanism.
2012-04-26 20:03:54 +00:00
Lasse Öörni
2ff2fc81fa Moved Squish back to its own directory. 2012-04-26 06:51:08 +00:00
Lasse Öörni
08f7d03fcc Tidied up root CMakeLists.txt. 2012-04-25 23:03:58 +00:00
Lasse Öörni
ec593273b8 Moved a slimmed down version of Squish (only DXT decompression) directly to the Resource library. 2012-04-25 22:51:24 +00:00
Lasse Öörni
a5b035d886 Added possibility to run OpenGL mode without hardware DXT support (for severely broken drivers.) 2012-04-25 21:26:52 +00:00
Lasse Öörni
40709f2d63 Added GetCompressedTextureSupport() to Graphics. Always true on Direct3D9. 2012-04-25 21:23:37 +00:00
Lasse Öörni
2f4165bf0f Added Squish library for DXT decompression. 2012-04-25 21:07:35 +00:00
Lasse Öörni
0ea1679976 Optionally use SSE instruction set. 2012-04-25 18:38:24 +00:00
Lasse Öörni
317a502b7e Updated to newest kNet. 2012-04-24 20:31:20 +00:00
Lasse Öörni
172a097b1c Mark nodes and components separately for network update, instead of looping node's all components when one of them changes. 2012-04-24 16:12:56 +00:00
Lasse Öörni
8a4351b8ec Removed the IsLoading() flag from Serializable. Instead implemented separately in AnimatedModel, which is the only component that needs that information. 2012-04-24 07:16:32 +00:00
Lasse Öörni
496a21d984 Optimized CalculateLodLevels() when it's a no-op. 2012-04-23 21:50:51 +00:00
Lasse Öörni
c936e216d9 Optimized StaticModel batch structure for less cache misses. 2012-04-23 21:20:31 +00:00
Lasse Öörni
da921892b2 Rearranged Octant variables for more optimal access.
Slimmed down Object, Serializable & Node for better cache performance by storing event handlers in a Map instead of HashMap and abstracting per-object network replication state into a separately allocated structure NetworkState.
2012-04-23 20:44:04 +00:00
Lasse Öörni
71beb9e343 Optimized UpdateDistance() for case of 1 submesh only. 2012-04-23 19:12:00 +00:00
Lasse Öörni
3bec77f823 More descriptive profiler block names. 2012-04-23 19:01:55 +00:00
Lasse Öörni
5bc2c61d88 Reorganized Node, Component, Drawable & Camera member variables for more optimal access.
Several Camera getter functions changed to const.
2012-04-23 18:41:38 +00:00