Skip to content

Emulator <-> API connection requires 4 API calls per frame. #17

@OhmGeek

Description

@OhmGeek

This is a slight bottleneck, as the emulator input plugin blocks while the TCP socket fetches the response, causing stuttering.

Instead of requesting 4 responses per image frame, instead request 1 response containing the entire memory buffer.

This will require a slight change in the JSON structure, such that:

{
  "PLAYER_1_ANALOG": [0,0],
   ...

   "PLAYER_4_A_BTN: 0
}

We can then parse this more easily, using only function calls on a string instead of blocking the input thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions