mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use fibonacci hashing to determine thread colors.
This commit is contained in:
parent
7a1fb4e0bd
commit
4c736aecfa
@ -12140,7 +12140,7 @@ uint32_t View::GetThreadColor( uint64_t thread, int depth )
|
||||
{
|
||||
if( !m_vd.dynamicColors ) return 0xFFCC5555;
|
||||
|
||||
const uint8_t h = thread & 0xFF;
|
||||
const uint8_t h = ( thread * 11400714819323198485ull ) & 0xFF;
|
||||
const uint8_t s = 96;
|
||||
const uint8_t v = std::max( 96, 170 - depth * 8 );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user