This commit is contained in:
Pavel 2025-03-10 22:11:40 +03:00
parent e7f801590b
commit d37795d89d
1 changed files with 4 additions and 3 deletions

View File

@ -980,9 +980,6 @@ begin
System.InterlockedIncrement(Fflip_count[bufferIndex]);
end;
//inc pending frame
System.InterlockedIncrement(last_status.flipPendingNum0);
//inc GPU pending frame
System.InterlockedIncrement(last_status.gcQueueNum);
end;
@ -991,6 +988,9 @@ begin
//dec GPU pending mark
System.InterlockedDecrement(last_status.gcQueueNum);
//inc pending frame
System.InterlockedIncrement(last_status.flipPendingNum0);
if (bufferIndex<>-1) then
begin
//set buf label
@ -1000,6 +1000,7 @@ begin
end;
bFinishFlip:
begin
//dec pending frame
System.InterlockedDecrement(last_status.flipPendingNum0);
//dec flip counter