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

Add Diagonal test to GBA siute #60

Open
pinobatch opened this issue Aug 22, 2024 · 1 comment
Open

Add Diagonal test to GBA siute #60

pinobatch opened this issue Aug 22, 2024 · 1 comment

Comments

@pinobatch
Copy link
Owner

Upstream 240p Test Suite for Nintendo 64 has a new test called "Diagonal Test". At 3:48 in the video, see four 5-pixel-wide bars with 5-pixel spaces between them. This amounts to 35 by 200 pixels on N64 (or probably 35 by 140 on GBA).

Per the Diagonal Test source code, a plausible set of controls for the GBA is roughly as follows:

  • Right, autorepeating at 60 Hz: rotate clockwise by 1/(360 * speed divisor) turn
  • Left, autorepeating at 60 Hz: rotate counterclockwise by 1/(360 * speed divisor) turn
  • Up: Decrease speed divisor (minimum 1)
  • Down: Increase speed divisor (maximum 20)
  • A Button: toggle automatic rotation in last rotation (Left or Right)

Because 1/(360*19) and 1/(360*20) are so close, the rotation angle will need all the precision it can get. Consider a 32-bit fraction of a turn, and consider evaluating the sine and cosine using CORDIC.

@ArtemioUrbina
Copy link

It will be awesome to see it on GBA! I have only added this test to 3d capable consoles so far, like Dreamcast, GC and Wii.

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