Skip to content

Commit

Permalink
[PS4] Schedule submitDone() during suspend more frequently
Browse files Browse the repository at this point in the history
b/228514363

Change-Id: I5e488e00859b22b135423e2a6a29d09f77c82c1d
  • Loading branch information
niranjanyardi committed Apr 19, 2022
1 parent 44dd69f commit 92ad608
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions glimp/egl/display.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ namespace egl {
// https://ps4.siedev.net/resources/documents/SDK/9.500/Programming-Startup_Guide/0006.html#__document_toc_00000034
// sce::Gnm::submitDone() gets called regularly in the rasterizer thread and
// should be called from the main thread when the app is in suspended state.
// We don't want to call this event very often and consume cycles on the main
// thread so we decided to schedule the callback every 4 secs, keeping 1 sec
// as buffer.
const SbTime kSubmitDoneDelay = 4 * kSbTimeSecond;
// kSubmitDoneDelay is set to 1/60sec (same scheduling frequency as
// the app in foreground)
const SbTime kSubmitDoneDelay = kSbTimeSecond / 60;

namespace {
void ScheduleSubmitDoneCallback(void* context) {
Expand Down

0 comments on commit 92ad608

Please sign in to comment.