Skip to content

sinclair/specnext.cpp: Added video output configuration (VGA/HDMI); refresh rate 50/60Hz; timings for all reference machines #13992

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

holub
Copy link
Contributor

@holub holub commented Jul 26, 2025

holub added 2 commits July 25, 2025 22:36
…efresh rate 50/60Hz; timings for all reference machines

m_eff_nr_03_machine_timing = m_nr_03_machine_timing;
m_eff_nr_05_5060 = m_nr_05_5060;
popmessage("%s: %s %dHz", machine_name, is_hdmi ? "HDMI" : "VGA", m_nr_05_5060 ? 60 : 50);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be LOGMASKED() or similar rather than just shown to the user.

Copy link
Contributor Author

@holub holub Jul 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this way it gives good user experience. Similar how your TV set shows such message.

@holub holub marked this pull request as draft July 28, 2025 01:46
@holub
Copy link
Contributor Author

holub commented Jul 28, 2025

I'll postpone till resolve bgfx issue. It crashes unconditionally after configure() for other values too.

@holub holub marked this pull request as ready for review July 30, 2025 20:20
@holub
Copy link
Contributor Author

holub commented Jul 30, 2025

The issue is related to bgfx. I've tried other -video and there it works like a charm

@rb6502
Copy link
Contributor

rb6502 commented Jul 30, 2025

There is a lingering issue in BGFX where it's mixing up the stride with the width or something along those lines. macOS prints diagnostics to the terminal about it in some cases.

Comment on lines +72 to +74
u16 min_vsync; // displays don't like vsync = vblank
u16 max_vsync;
u16 max_vblank;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are two separate things indeed, blank = back porch + sync + front porch

upd7220_blank_ref

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

Successfully merging this pull request may close these issues.

3 participants