pub unsafe fn set_performance_level(
callback: retro_environment_t,
level: u8,
) -> boolExpand description
Gives a hint to the frontend how demanding this implementation is on a system. E.g. reporting a level of 2 means this implementation should run decently on all frontends of level 2 and up.
It can be used by the frontend to potentially warn about too demanding implementations.
The levels are “floating”.
This function can be called on a per-game basis, as certain games an implementation can play might be particularly demanding.