Adding fpsTarget.

This commit is contained in:
sergiotarxz 2023-03-15 03:10:51 +01:00
parent ef44794376
commit 976cf3d92f
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,8 @@ msCoreControllerLoadGame (const unsigned char *rom, size_t rom_len,
unsigned int height;
mCoreInitConfig(core, NULL);
mCoreConfigSetIntValue(&core->config, "logLevel", mLOG_FATAL);
mCoreConfigSetFloatValue(&core->config, "fpsTarget", 0.1f);
mCoreConfigSetIntValue(&core->config, "videoSync", 1);
core->desiredVideoDimensions(core, &width, &height);
color_t *outputBuffer = malloc((sizeof *outputBuffer) * width * height);

View File

@ -39,6 +39,9 @@ return_ms_packet_write:
bool
msPacketSend(const struct msPacket *const packet, struct msClientConnectionData *const data) {
if (!data->mutexSendPacket) {
return false;
}
pthread_mutex_lock(data->mutexSendPacket);
int fd = data->clientFd;
size_t id = packet->id;