2025-08-25 08:32 CEST

spring: develop ab7a298c Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Eshed Eshed develop 2017-03-03 17:59:30 develop 484bff15
Changeset sync spring::unordered_{map,set} and add spring::unsynced_{map,set}

spring::unordered_map uses spring::synced_hash by default
instead of std::hash so we know taversal is consistent
on different platforms.

This fixes 0005489
The desync was caused by using std::hash on strings in AssParser,
resulting in different piece numbers on 32&64 bit.
mod - rts/Lua/LuaMaterial.cpp Diff ] File ]
mod - rts/Lua/LuaMaterial.h Diff ] File ]
mod - rts/Lua/LuaUtils.cpp Diff ] File ]
mod - rts/Rendering/Env/Particles/Classes/ShieldSegmentProjectile.cpp Diff ] File ]
mod - rts/Rendering/Fonts/CFontTexture.cpp Diff ] File ]
mod - rts/Rendering/Fonts/CFontTexture.h Diff ] File ]
mod - rts/Rendering/Models/AssParser.cpp Diff ] File ]
mod - rts/Rendering/Models/AssParser.h Diff ] File ]
mod - rts/Rendering/Shaders/ShaderStates.h Diff ] File ]
mod - rts/Rendering/Textures/S3OTextureHandler.h Diff ] File ]
mod - rts/Rendering/UnitDrawer.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.h Diff ] File ]
mod - rts/System/Log/DefaultFilter.cpp Diff ] File ]
mod - rts/System/Log/DefaultFilter.h Diff ] File ]
mod - rts/System/Sound/OpenAL/AudioChannel.h Diff ] File ]
mod - rts/System/Sound/OpenAL/EFX.h Diff ] File ]
mod - rts/System/Sound/OpenAL/EFXPresets.cpp Diff ] File ]
mod - rts/System/Sound/OpenAL/EFXPresets.h Diff ] File ]
mod - rts/System/Sound/OpenAL/SoundBuffer.h Diff ] File ]
add - rts/System/SpringHash.h Diff ] File ]
mod - rts/System/SpringHashMap.hpp Diff ] File ]
mod - rts/System/SpringHashSet.hpp Diff ] File ]
mod - rts/System/Sync/HsiehHash.h Diff ] File ]
mod - rts/System/UnorderedMap.hpp Diff ] File ]
mod - rts/System/UnorderedSet.hpp Diff ] File ]
mod - rts/System/creg/STL_Map.h Diff ] File ]
mod - rts/System/creg/STL_Set.h Diff ] File ]
mod - rts/System/creg/creg.cpp Diff ] File ]