mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
* 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.
19 lines
492 B
C
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
|