Triforce v0.9.0

Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-30 20:55:14 -06:00
parent 8cb23131f9
commit 822ee913bc
86 changed files with 8128 additions and 438 deletions

View File

@@ -21,7 +21,7 @@ public static class Astc
// ---- bit streams ----
/// <summary>Reads bits from the low bit of the first byte upward; past the end it reads zeros.</summary>
ref struct InputBitStream
internal ref struct InputBitStream
{
readonly ReadOnlySpan<byte> data;
int bitsRead;
@@ -91,9 +91,9 @@ public static class Astc
// ---- bounded integer sequences ----
enum IntegerEncoding : byte { JustBits, Quint, Trit }
internal enum IntegerEncoding : byte { JustBits, Quint, Trit }
struct IntegerEncodedValue
internal struct IntegerEncodedValue
{
public IntegerEncoding Encoding;
public int NumBits;
@@ -143,7 +143,7 @@ public static class Astc
return new IntegerEncodedValue(IntegerEncoding.JustBits, 0);
}
static readonly IntegerEncodedValue[] Encodings = MakeEncodedValues();
internal static readonly IntegerEncodedValue[] Encodings = MakeEncodedValues();
static IntegerEncodedValue[] MakeEncodedValues()
{
@@ -155,7 +155,7 @@ public static class Astc
/// <summary>A fixed-capacity list of decoded values (boost::static_vector without throwing: values past the capacity
/// are dropped, as there).</summary>
sealed class EncodedVector
internal sealed class EncodedVector
{
public readonly IntegerEncodedValue[] Items = new IntegerEncodedValue[300];
public int Count;
@@ -167,7 +167,7 @@ public static class Astc
}
}
static void DecodeTritBlock(ref InputBitStream bits, EncodedVector result, int nBitsPerValue)
internal static void DecodeTritBlock(ref InputBitStream bits, EncodedVector result, int nBitsPerValue)
{
// (section C.2.12: read the trit-encoded block per table C.2.14)
Span<uint> m = stackalloc uint[5];
@@ -230,7 +230,7 @@ public static class Astc
}
}
static void DecodeQuintBlock(ref InputBitStream bits, EncodedVector result, int nBitsPerValue)
internal static void DecodeQuintBlock(ref InputBitStream bits, EncodedVector result, int nBitsPerValue)
{
// (section C.2.12: read the quint-encoded block per table C.2.15)
Span<uint> m = stackalloc uint[3];
@@ -308,7 +308,7 @@ public static class Astc
// ---- block mode ----
struct TexelWeightParams
internal struct TexelWeightParams
{
public uint Width, Height;
public bool DualPlane;
@@ -332,7 +332,7 @@ public static class Astc
}
}
static TexelWeightParams DecodeBlockInfo(ref InputBitStream strm)
internal static TexelWeightParams DecodeBlockInfo(ref InputBitStream strm)
{
var p = new TexelWeightParams();
// (the whole block mode at once)
@@ -523,7 +523,7 @@ public static class Astc
// ---- color endpoints ----
static void DecodeColorValues(Span<uint> output, ReadOnlySpan<byte> data, ReadOnlySpan<uint> modes, int nPartitions,
internal static void DecodeColorValues(Span<uint> output, ReadOnlySpan<byte> data, ReadOnlySpan<uint> modes, int nPartitions,
int nBitsForColorData, EncodedVector decoded)
{
// (how many color values there are)
@@ -668,7 +668,7 @@ public static class Astc
}
}
static uint UnquantizeTexelWeight(IntegerEncodedValue val)
internal static uint UnquantizeTexelWeight(IntegerEncodedValue val)
{
var bitval = val.BitValue;
var bitlen = val.NumBits;