virtualx-engine/servers
Hein-Pieter van Braam 0e29f7974b Reduce unnecessary COW on Vector by make writing explicit
This commit makes operator[] on Vector const and adds a write proxy to it.  From
now on writes to Vectors need to happen through the .write proxy. So for
instance:

Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;

Failing to use the .write proxy will cause a compilation error.

In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.

_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
..
arvr Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
audio Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
physics Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
physics_2d Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
visual Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
arvr_server.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
arvr_server.h A few fixes on the ARVR Server 2018-03-15 23:31:02 +11:00
audio_server.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
audio_server.h Add Audio Server profiling time to the profiler 2018-07-17 10:11:56 -03:00
physics_2d_server.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
physics_2d_server.h Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their respective 2D counterparts to be more consistent and to include more useful methods. 2018-07-24 05:00:56 -04:00
physics_server.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
physics_server.h Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their respective 2D counterparts to be more consistent and to include more useful methods. 2018-07-24 05:00:56 -04:00
register_server_types.cpp Deprecated Godot 3D physics engine 2018-02-26 12:51:30 +01:00
register_server_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00
server_wrap_mt_common.h Added ability for SSAO to affect AO textures too 2018-07-02 16:50:52 -03:00
visual_server.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
visual_server.h Merge pull request #18368 from Gamblify/RasterizerEngineSync 2018-07-25 20:33:37 +02:00