Adding fpsTarget.
This commit is contained in:
parent
ef44794376
commit
976cf3d92f
@ -39,6 +39,8 @@ msCoreControllerLoadGame (const unsigned char *rom, size_t rom_len,
|
|||||||
unsigned int height;
|
unsigned int height;
|
||||||
mCoreInitConfig(core, NULL);
|
mCoreInitConfig(core, NULL);
|
||||||
mCoreConfigSetIntValue(&core->config, "logLevel", mLOG_FATAL);
|
mCoreConfigSetIntValue(&core->config, "logLevel", mLOG_FATAL);
|
||||||
|
mCoreConfigSetFloatValue(&core->config, "fpsTarget", 0.1f);
|
||||||
|
mCoreConfigSetIntValue(&core->config, "videoSync", 1);
|
||||||
|
|
||||||
core->desiredVideoDimensions(core, &width, &height);
|
core->desiredVideoDimensions(core, &width, &height);
|
||||||
color_t *outputBuffer = malloc((sizeof *outputBuffer) * width * height);
|
color_t *outputBuffer = malloc((sizeof *outputBuffer) * width * height);
|
||||||
|
@ -39,6 +39,9 @@ return_ms_packet_write:
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
msPacketSend(const struct msPacket *const packet, struct msClientConnectionData *const data) {
|
msPacketSend(const struct msPacket *const packet, struct msClientConnectionData *const data) {
|
||||||
|
if (!data->mutexSendPacket) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
pthread_mutex_lock(data->mutexSendPacket);
|
pthread_mutex_lock(data->mutexSendPacket);
|
||||||
int fd = data->clientFd;
|
int fd = data->clientFd;
|
||||||
size_t id = packet->id;
|
size_t id = packet->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user