Skip to content

Commit

Permalink
Improve prediction logic for above 60fps
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir committed Aug 6, 2023
1 parent 4c8c696 commit abde16b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/blood/src/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,8 @@ void viewCorrectPrediction(void)
}
spritetype *pSprite = gMe->pSprite;
VIEW *pView = &predictFifo[(gNetFifoTail-1)&255];
if (gMe->q16ang != pView->at30 || pView->at24 != gMe->q16horiz || pView->at50 != pSprite->x || pView->at54 != pSprite->y || pView->at58 != pSprite->z)
const char bCalPrediction = !VanillaMode() || (gMe->q16ang != pView->at30 || pView->at24 != gMe->q16horiz || pView->at50 != pSprite->x || pView->at54 != pSprite->y || pView->at58 != pSprite->z);
if (bCalPrediction)
{
viewInitializePrediction();
predictOld = gPrevView[myconnectindex];
Expand Down

0 comments on commit abde16b

Please sign in to comment.