RaydiumWikiNi

ApiTimecallsDetails

PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes ec2-3-22-240-205.us-east-2.compute.amazonaws.com

27.2 Details


27.2.1 void raydium_timecall_add(void *funct, GLint hz)


There is two sort of timecalls with Raydium:

1. Standard ones:

raydium_timecall_add(function,800);

void function(void) will be called 800 times per second.

2. Elastic timed ones:

raydium_timecall_add(function,-80);


void function(float step) will be called for each frame, with a "step factor" as argument. In the above example, a 160 Hz game will call function with step = 0.5, but step = 2.0 for a 40 Hz game.

A standard timecall will use void(void) function and a positive hertz argument, as an elasitc one will use void(float) and negative hertz argument.


Missing:
void raydium_timecall_raydium (GLfloat step);
float raydium_timecall_internal_w32_detect_modulo(int div);
int raydium_timecall_internal_w32_divmodulo_find(void);
unsigned long raydium_timecall_devrtc_clock (void);
unsigned long raydium_timecall_clock (void);
char raydium_timecall_devrtc_rate_change (unsigned long new);
void raydium_timecall_devrtc_close (void);
unsigned long raydium_timecall_devrtc_init (void);
int raydium_timecall_detect_frequency (void);
void raydium_timecall_init (void);
void raydium_timecall_freq_change (int callback, GLint hz);
void raydium_timecall_callback (void);

Return to RaydiumApiReference index.