Show More
Commit Description:
Optimize PreserveCounts and only recalculate when needed....
Commit Description:
Optimize PreserveCounts and only recalculate when needed.
Previously would recalculate preservecounts every Update call (~1 per frame), which isn't necessary
when there's no tick. Might be some room to tweak, like doing these updates only when preserves change.
Some measurements: This takes about 30ms versus the .25 ms with no preserve (then like .0002ms).
When the map is filled up with preserve, about 35ms and 9ms. With a handful of
cells, it's more like 0.8ms (before JIT optimizes most of it away).
References:
File last commit:
Show/Diff file:
Action:
ImGui.NET/Generated/ImGuiColorEditFlags.gen.cs
36 lines | 899 B | text/x-csharp | CSharpLexer
36 lines | 899 B | text/x-csharp | CSharpLexer
r16 | namespace ImGuiNET | |||
{ | ||||
[System.Flags] | ||||
public enum ImGuiColorEditFlags | ||||
{ | ||||
None = 0, | ||||
r503 | NoAlpha = 2, | |||
NoPicker = 4, | ||||
NoOptions = 8, | ||||
NoSmallPreview = 16, | ||||
NoInputs = 32, | ||||
NoTooltip = 64, | ||||
NoLabel = 128, | ||||
NoSidePreview = 256, | ||||
NoDragDrop = 512, | ||||
NoBorder = 1024, | ||||
AlphaBar = 65536, | ||||
AlphaPreview = 131072, | ||||
AlphaPreviewHalf = 262144, | ||||
HDR = 524288, | ||||
DisplayRGB = 1048576, | ||||
DisplayHSV = 2097152, | ||||
DisplayHex = 4194304, | ||||
Uint8 = 8388608, | ||||
Float = 16777216, | ||||
PickerHueBar = 33554432, | ||||
PickerHueWheel = 67108864, | ||||
InputRGB = 134217728, | ||||
InputHSV = 268435456, | ||||
r505 | DefaultOptions = 177209344, | |||
r503 | DisplayMask = 7340032, | |||
DataTypeMask = 25165824, | ||||
PickerMask = 100663296, | ||||
InputMask = 402653184, | ||||
r16 | } | |||
} | ||||