Table of Contents

Class MaxWRAMAttribute

Namespace
GB
Assembly
GBSharp.Framework.dll

The most work RAM this game may use, in bytes.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class MaxWRAMAttribute : Attribute
Inheritance
MaxWRAMAttribute
Inherited Members

Remarks

Exceeding it fails the build. That is the point: a budget nobody enforces is a comment, and the whole value of declaring one is that it holds while nobody is looking (thesis section 26).

Checked against what the linker actually placed, not what the code declared. The real figure includes the stack, shadow OAM and GBDK's own state, so a declared-bytes total would let a game creep past its budget and still pass.

[assembly: MaxWRAM(6144)]

Constructors

MaxWRAMAttribute(int)

public MaxWRAMAttribute(int bytes)

Parameters

bytes int

Properties

Bytes

public int Bytes { get; }

Property Value

int