Oriel — AI & technology worth noticing, every day.

Speeding up the Unreal editor by… not using unnecessarily secure hash methods

Web page · https://larstofus.com/2026/10/11/speeding-up-the-unreal-editor-by-not-using-unnecessarily-secure-hash-methods

First seen by Oriel on .

AI summary

The author replaced SHA1 with xxHash for Unreal shader source hashing, reducing measured hashing CPU time by about eight times; Epic accepted the change for integration.

  • Profiling Electric Dreams editor launches across five runs per version showed hashing time drop from 12.90 seconds in FSHA1::Update to 1.59 seconds in FXxHash64Builder::Update.
  • Shader source includes comments and copyright notices, so the author argues it needs a fast hash rather than a cryptographically secure one.
  • The change also reduced stored hashes from 20 bytes to 8 bytes and reused an existing, tested xxHash implementation in Unreal.
  • Epic wrapped the hash in FShaderHash to make future algorithm changes easier and fixed a compile error affecting non-editor builds.

#unreal engine #xxhash #shader compilation #performance optimization

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Lobsters5feguuhttps://larstofus.com/2026/10/11/speeding-up-the-unreal-editor-by-not-using-unnecessarily-secure-hash-methods/ Read discussion