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

Support for high resolution? #148

Open
L1uTongwei opened this issue Aug 7, 2023 · 1 comment
Open

Support for high resolution? #148

L1uTongwei opened this issue Aug 7, 2023 · 1 comment

Comments

@L1uTongwei
Copy link

look these codes in video_gen.cpp:

//selects the widest render method that fits in 46us
//as of 9/16/10 rendermode 3 will not work for resolutions lower than
//192(display.hres lower than 24)
unsigned char rmethod = (_TIME_ACTIVE*_CYCLES_PER_US)/(display.hres*8);
switch(rmethod) {
case 6:
	render_line = &render_line6c;
	break;
case 5:
	render_line = &render_line5c;
	break;
case 4:
	render_line = &render_line4c;
	break;
case 3:
	render_line = &render_line3c;
	break;
default:
	if (rmethod > 6)
		render_line = &render_line6c;
	else
		render_line = &render_line3c;
}

It seems that the cycles would make effort to render mode.
Now I have 16Mhz ATmega328P, what is the max resolution? (If we don't care memory...)
Do 640x480 even 1024x768 possible?

@L1uTongwei
Copy link
Author

Then, in order to read information of line, I edit render functions:

for(int16_t i = 0; i < display.hres; i++){
    display.screenBuffer[i] = display.screen[renderLine * (uint32_t)display.vres + i];
}
//......

Would it change the feature?

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

1 participant