nn::fs::ForceEnableLatencyEmulation Function

Syntax

void ForceEnableLatencyEmulation(
     bool isEmulateEndurance = true,
     s64 constantWait = 0
);

Arguments

Name Description
in isEmulateEndurance Emulates the behavior of a non-volatile memory device that has become degraded. (If this is omitted, true is specified by default.)
The latencies at runtime are a wait time of 1 to 100 ms for each read, and a wait time of 0 to 380 ms for each write.
in constantWait Emulates a fixed period of waiting. (If omitted, 0 is specified by default.)
If you specify nn::fs::LATENCY_RECOMMENDED_SD_MAX, a latency of 700 ms is emulated for the time in takes in a pure SD Card usage environment when a conflict arises for FS resources with BOSS in the background.

Return Values

None.

Description

Emulates the behavior of a non-volatile memory device that has become degraded, and the behavior when a conflict arises for FS resources with a process in the background. (For debugging purposes.)

This emulation is enabled by default for debug and development builds, but disabled by default for release builds. Call this function to explicitly enable emulation for debugging purposes.

Call the nn::fs::ForceDisableLatencyEmulation function to explicitly disable the emulation.

Notes for writing an application to a CTR flash card using PARTNER-CTR-Debugger

CTR flash cards have a function that sets the access speed from the card. The "development card speed setting" configured by the PARTNER-CTR-Debugger when it writes the program is reflected as the access speed.
When the SDK's latency emulation is enabled, the above access speed is added during game card access.
Use these functions as needed while debugging your application. (For example, you can enable just one of them.)

Revision History

2011/03/15
Added description regarding to the access speed setting feature of CTR flash cards.
2011/02/21
Added a feature to always emulate a fixed period of waiting.
2010/11/11
Added specific wait values.
2010/11/09
Initial version.

CONFIDENTIAL