add setPreferPowerEfficiency call

This commit is contained in:
StarBeats 2025-02-21 10:35:55 +08:00
parent d221880aaa
commit d4ab16e09e

View File

@ -54,6 +54,11 @@ public class GameSdk {
public void SetPerfHitTargetNanos( long targetNs) { public void SetPerfHitTargetNanos( long targetNs) {
performanceHintSession.updateTargetWorkDuration(targetNs); performanceHintSession.updateTargetWorkDuration(targetNs);
} }
public void SetPerfHitPreferPowerEfficiency(boolean preferPowerEfficiency) {
performanceHintSession.setPreferPowerEfficiency(preferPowerEfficiency);
}
public void ReportPerfHint(long durantionNs) { public void ReportPerfHint(long durantionNs) {
performanceHintSession.reportActualWorkDuration(durantionNs); performanceHintSession.reportActualWorkDuration(durantionNs);
} }