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

Question: Can you change the resolution of the emulator on browser? #33

Open
BeezBumba opened this issue Jan 7, 2024 · 6 comments
Open

Comments

@BeezBumba
Copy link

I am wondering if it's possible to change resolution on the emulator inside the browser, So if somewhere were to copy the code and wanted to make the output image clearer, how would I do that?

@nbarkhina
Copy link
Owner

Currently no it's hard coded to 640x480. But it's something I may add in the future. Thanks for the suggestion.

@nbarkhina
Copy link
Owner

@BeezBumba if you're able to update the source code now then you can also change the resolution from 640x480.

@BeezBumba
Copy link
Author

Would that be on the same file as the filtering?

@nbarkhina
Copy link
Owner

Take a look at this proof of concept commit where I got the resolution to change. It shows the files I had to change.

@BeezBumba
Copy link
Author

Ok I got it working, so there is actually no big change in performance than I was expecting. The fps and menu screen text however is smaller because of the resolution. I'm not sure were to look. https://github.com/BeezBumba/Testing64

@nbarkhina
Copy link
Owner

nbarkhina commented Feb 13, 2024

That's good to hear it doesn't have a performance hit. I don't think the menu size is that big of a deal but if you're curious the menu code is all in mymain.cpp via the drawTextOpenGL() function. Would take some scaling to get it to look right via the translateDrawTextScreenCoordinates() function on line 1498

    translateDrawTextScreenCoordinates(x, y, surface->w, surface->h);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants