-
Notifications
You must be signed in to change notification settings - Fork 70
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
Emulation running, but screen rendered black #534
Comments
Never managed to make that happen here, since palettes are embedded, and no external files are used or read. Please provide clear steps and log. |
|
Also logging program counter to see that its not just stuck in the kernal |
Doing this in the video callback to check for pixels; void video_refresh(void const* data, unsigned width, unsigned height, size_t pitch)
{
uint32_t total = 0;
auto*ptr = (uint8_t*)data;
for(int i=0; i<(width * height * 4); i += 4) {
total += ptr[i] + ptr[i+1] + ptr[i+2] + ptr[i+3];
}
if (total != 0) {
printf("PIXELS: %x\n", total);
}
} |
I'm not getting whatever this is, not with my current config and not with a fresh config:
|
It does kind of seem like the C64 emulation actually produces a black screen, so maybe something is wrong with the machine setup (kernal, basic ?) But emulation doesn't crash, Program Counter is jumpin between Exxx and 08xx for instance. |
I can step in the debugger and see that the emulation is running.
Disk-image seems to load correctly.
The only log warning I get is not finding palette files, but the code sets a default palette then.
Pixels rendered are all black though. I am using 32-bit gfx mode though which seems to be a bit non-standard and untested.
Also Note: I went back to an older version of the core, and that does produce video.
The text was updated successfully, but these errors were encountered: