Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement swtfb for rmkit #9

Closed
raisjn opened this issue Oct 31, 2020 · 4 comments
Closed

implement swtfb for rmkit #9

raisjn opened this issue Oct 31, 2020 · 4 comments
Labels
integration Integrate rm2fb with another library / program

Comments

@raisjn
Copy link
Collaborator

raisjn commented Oct 31, 2020

No description provided.

@raisjn
Copy link
Collaborator Author

raisjn commented Oct 31, 2020

This was not too bad with IPC, but there are some problems. When using sendUpdate and sending the rectangle to update over IPC, the screen does not always get updated correctly.

By having a while (true) loop in the server thread that always draws the full screen every 100ms or so, the apps are working (but this is not good at all, since it wastes CPU and is not aware of damaged rects)

https://imgur.com/a/02HJJuI

@raisjn
Copy link
Collaborator Author

raisjn commented Oct 31, 2020

ok, the issue was the swtfb_update struct did not correctly have mtype = 1 for sending across sysv message queues. now it's fixed and works correctly.

next up: need to figure out how to batch dirty rectangles on the FB server

@raisjn
Copy link
Collaborator Author

raisjn commented Nov 1, 2020

now rectangles are being batched on server (all send update calls received during an update are batched into the next update)

@raisjn raisjn added the integration Integrate rm2fb with another library / program label Nov 5, 2020
@raisjn
Copy link
Collaborator Author

raisjn commented Nov 6, 2020

this issue was good for figuring out the IPC server, but i'll likely remove swtfb support from rmkit and use the shim instead

@raisjn raisjn closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Integrate rm2fb with another library / program
Projects
None yet
Development

No branches or pull requests

1 participant