I've been struggling for weeks to display perfect 1:1 C64 image on my CRT TV. Since microcomputers are nowhere near as popular as old consoles, information on this subject is very scarce and despite searching all over internet I failed to achieve this. I got very close, but as anybody obsessed with 1:1 CRT pixels knows, "close" is not good enough.
Seems that the only person on the planet who may know how to perform this feat is @ironic, hence me posting here even though I use Retropie (though I don't think the OS choice really matters since the core settings are universal).
My setup: RPi 3B + Pi2SCART + 29" Sony Trinitron + Retropie 4.2
I use these hdmi_timings=320 1 15 20 49 240 1 6 8 10 0 0 0 60 0 6400000 1 values for my other emus such as horizontal MAME and retro consoles. Using the 1600 pixel trick they all display perfect 1:1. When tried with microcomputers problems start (probably because these are not within Retroarch?) C64 image has artifacts when perfectly centered...1:1 look is possible, but then the image stretches beyond the screen horizontally (about 20-30 px each side) and has some borders on top and bottom.
I've tried the hdmi_timings=336 1 10 18 46 288 1 5 6 6 0 0 0 50 0 6400000 1 values suggested by @ironic but it still doesn't work for me. I suppose the answer may be in VICE settings - there are numerous ones in Video section. I tried most possible combinations though...
This issue i driving me mad...so any help greatly appreciated.
sdl-vicerc config:
MenuKey=293
MenuKeyUp=273
MenuKeyDown=274
MenuKeyLeft=276
MenuKeyRight=275
SaveResourcesOnExit=1
SoundDeviceName="alsa"
Sound=0
SoundBufferSize=100
AspectRatio="1.000000"
SDLLimitMode=1
SDLCustomWidth=336
SDLCustomHeight=288
SDLWindowWidth=336
SDLWindowHeight=288
SDLGLAspectMode=1
IECReset=1
CIA1Model=0
CIA2Model=0
VICIIVideoCache=1
VICIIDoubleScan=0
VICIIDoubleSize=0
VICIISDLFullscreenMode=1
VICIIPALScanLineShade=0
VICIIPALBlur=0
VICIIPALOddLinePhase=0
VICIIPALOddLineOffset=0
VICIIFilter=0
VICIICheckSbColl=0
SidEngine=0
SidModel=0
JoyPort4Device=0
JoyPort3Device=0
JoyPort1Device=0
KeySetEnable=0
JoyDevice2=4
Mouse=1
ETHERNETCARTBase=56832
Acia1Base=56832