CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Core/HW/Display.h
Views: 1401
// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <cstdint>2021class PointerWrap;2223typedef void (*VblankCallback)();24// Listen for vblank events.25void __DisplayListenVblank(VblankCallback callback);26typedef void (*FlipCallback)(void *userdata);27void __DisplayListenFlip(FlipCallback callback, void *userdata);28void __DisplayForgetFlip(FlipCallback callback, void *userdata);2930int __DisplayGetFlipCount();31int __DisplayGetNumVblanks();32int __DisplayGetVCount();33bool DisplayIsVblank();34uint64_t DisplayFrameStartTicks();35uint32_t __DisplayGetCurrentHcount();36uint32_t __DisplayGetAccumulatedHcount();37void DisplayAdjustAccumulatedHcount(uint32_t diff);3839void __DisplayGetDebugStats(char stats[], size_t bufsize);40void __DisplayGetAveragedFPS(float *out_vps, float *out_fps);41void __DisplayGetFPS(float *out_vps, float *out_fps, float *out_actual_fps);42void __DisplayGetVPS(float *out_vps);43double *__DisplayGetFrameTimes(int *out_valid, int *out_pos, double **out_sleep);44int DisplayGetSleepPos();45void DisplayNotifySleep(double t, int pos = -1);46bool DisplayIsRunningSlow();4748void DisplayFireVblankStart();49void DisplayFireVblankEnd();50void DisplayFireFlip();51void DisplayFireActualFlip();5253int DisplayCalculateFrameSkip();5455void DisplayHWInit();56void DisplayHWShutdown();57void DisplayHWDoState(PointerWrap &p, int hleCompatV2);585960