nn::gx::CTR::SetMemAccessPrioMode Function
void SetMemAccessPrioMode(
MemAccessPrioMode mode
);
| Name | Description | |
|---|---|---|
| in | mode | Access priority mode setting. |
Sets priority of access to main memory (FCRAM).
MEM_ACCESS_PRIO_MODE_0 is specified, the CPU, GPU, and other devices are all given equal access.MEM_ACCESS_PRIO_MODE_1 is specified, access from the CPU is given priority.MEM_ACCESS_PRIO_MODE_2 is specified, access from the CPU is given high priority.MEM_ACCESS_PRIO_MODE_3 is specified, access from either the CPU or GPU is given priority compared to other devices.MEM_ACCESS_PRIO_MODE_4 is specified, access from the GPU is given priority.
MEM_ACCESS_PRIO_MODE_1 is the initial setting.
Raising the CPU's access priority can minimize the impact by GPU or other device operations on the time required for CPU operations involving main memory access.
Note: When MEM_ACCESS_PRIO_MODE_2 is specified, the display buffer is located in main memory, and the CPU is making a large number of memory accesses, vertical line noise sometimes occurs on the LCD screens due to insufficient transfer bandwidth for LCD display. To avoid this, either locate the display buffer in VRAM or specify another mode.
MEM_ACCESS_PRIO_MODE_3 and MEM_ACCESS_PRIO_MODE_4 were reversed, but they have now been fixed.CONFIDENTIAL