Files
Main_MiSTer/frame_timer.h
tonytoon b897349052 screenshot optimizations to remove stalls in inputs / cd based cores (#1126)
* increase allowed autofire rates from 5 to 30. add autofire_on_directions option to mister.ini (defaults to 0/off)

* simd rewrite of scaler memcopy

* optimize screenshots / scaler copies

* optimize screenshots; simd memcopy for scaler_read, add frame timer callback handler

* tweaks

* restore .png save functionality.

* screenshot optimizations

* fix double free, guard against NULL

* fixing merge

* add mister.ini for screenshot_image_format

* correct file extension handling.

* slightly tweak bmp routine

* consolide screenshot code back into scaler.cpp, remove custom resize/bmp code.
2026-03-24 14:55:00 +08:00

19 lines
492 B
C

#ifndef FRAME_TIMER_H
#define FRAME_TIMER_H
#include <stdint.h>
#define MAX_FRAME_CALLBACKS 16
typedef void (*frame_callback_t)(void);
void frame_timer();
void add_frame_callback(frame_callback_t cb);
// global
extern uint64_t global_frame_counter; // used by FRAME_TICK()
extern bool fpga_vsync_timer; // does this core expose the frame counter directly?
// exposed globally in case timerfd isn't accurate enough for some use cases
#endif