Adding a .png border to a .cgp?

I’ve been using integer scale and overlay borders since ever but I noticed some performance speed up when overlay is disabled. So I was wondering if I could add the 1080p overlay border to my .cgp I could get the same performance of when there is no border. It makes sense?

If anyone could help me out here’s the .cgp I wish to add the border:

shaders = "7"
shader0 = ":\shaders\shaders_cg\ntsc\shaders/ntsc-pass1-svideo-2phase.cg"
filter_linear0 = "false"
wrap_mode0 = "clamp_to_border"
frame_count_mod0 = "2"
mipmap_input0 = "false"
alias0 = ""
float_framebuffer0 = "true"
srgb_framebuffer0 = "false"
scale_type_x0 = "absolute"
scale_x0 = "1280"
scale_type_y0 = "source"
scale_y0 = "1.000000"
shader1 = ":\shaders\shaders_cg\ntsc\shaders/ntsc-pass2-2phase-gamma.cg"
filter_linear1 = "false"
wrap_mode1 = "clamp_to_border"
mipmap_input1 = "false"
alias1 = ""
float_framebuffer1 = "false"
srgb_framebuffer1 = "false"
scale_type_x1 = "source"
scale_x1 = "0.500000"
scale_type_y1 = "source"
scale_y1 = "1.000000"
shader2 = ":\shaders\shaders_cg\cgp\../crt/shaders/crt-easymode-halation/linearize.cg"
filter_linear2 = "false"
wrap_mode2 = "clamp_to_border"
mipmap_input2 = "false"
alias2 = ""
float_framebuffer2 = "false"
srgb_framebuffer2 = "true"
scale_type_x2 = "source"
scale_x2 = "1.000000"
scale_type_y2 = "source"
scale_y2 = "1.000000"
shader3 = ":\shaders\shaders_cg\cgp\../crt/shaders/crt-easymode-halation/blur_horiz.cg"
filter_linear3 = "false"
wrap_mode3 = "clamp_to_border"
mipmap_input3 = "false"
alias3 = ""
float_framebuffer3 = "false"
srgb_framebuffer3 = "true"
scale_type_x3 = "source"
scale_x3 = "1.000000"
scale_type_y3 = "source"
scale_y3 = "1.000000"
shader4 = ":\shaders\shaders_cg\cgp\../crt/shaders/crt-easymode-halation/blur_vert.cg"
filter_linear4 = "false"
wrap_mode4 = "clamp_to_border"
mipmap_input4 = "false"
alias4 = ""
float_framebuffer4 = "false"
srgb_framebuffer4 = "true"
scale_type_x4 = "source"
scale_x4 = "1.000000"
scale_type_y4 = "source"
scale_y4 = "1.000000"
shader5 = ":\shaders\shaders_cg\cgp\../crt/shaders/crt-easymode-halation/threshold.cg"
filter_linear5 = "false"
wrap_mode5 = "clamp_to_border"
mipmap_input5 = "false"
alias5 = ""
float_framebuffer5 = "false"
srgb_framebuffer5 = "true"
scale_type_x5 = "source"
scale_x5 = "1.000000"
scale_type_y5 = "source"
scale_y5 = "1.000000"
shader6 = ":\shaders\shaders_cg\cgp\../crt/shaders/crt-easymode-halation/crt-easymode-halation.cg"
filter_linear6 = "true"
wrap_mode6 = "clamp_to_border"
mipmap_input6 = "false"
alias6 = ""
float_framebuffer6 = "false"
srgb_framebuffer6 = "false"
parameters = "NTSC_CRT_GAMMA;NTSC_MONITOR_GAMMA;GAMMA_INPUT;GAMMA_OUTPUT;SHARPNESS_H;SHARPNESS_V;MASK_TYPE;MASK_STRENGTH_MIN;MASK_STRENGTH_MAX;MASK_SIZE;SCANLINE_STRENGTH_MIN;SCANLINE_STRENGTH_MAX;SCANLINE_BEAM_MIN;SCANLINE_BEAM_MAX;GEOM_CURVATURE;GEOM_WARP;GEOM_CORNER_SIZE;GEOM_CORNER_SMOOTH;INTERLACING_TOGGLE;HALATION;DIFFUSION;BRIGHTNESS"
NTSC_CRT_GAMMA = "2.500000"
NTSC_MONITOR_GAMMA = "2.000000"
GAMMA_INPUT = "2.400000"
GAMMA_OUTPUT = "2.200000"
SHARPNESS_H = "0.000000"
SHARPNESS_V = "0.000000"
MASK_TYPE = "1.000000"
MASK_STRENGTH_MIN = "0.500000"
MASK_STRENGTH_MAX = "0.500000"
MASK_SIZE = "1.000000"
SCANLINE_STRENGTH_MIN = "0.100000"
SCANLINE_STRENGTH_MAX = "0.200000"
SCANLINE_BEAM_MIN = "5.000000"
SCANLINE_BEAM_MAX = "5.000000"
GEOM_CURVATURE = "0.000000"
GEOM_WARP = "0.000000"
GEOM_CORNER_SIZE = "0.010000"
GEOM_CORNER_SMOOTH = "150.000000"
INTERLACING_TOGGLE = "1.000000"
HALATION = "0.080000"
DIFFUSION = "0.160000"
BRIGHTNESS = "1.000000"

You would need to add these lines to the cgp and then add the border image to the same directory as your preset: shader7 = …borders/resources/imgborder-1080p.cg

textures = bg
bg = border-1080p.png

You’ll also want to set a 4x scale for shader6, like this: scale_type6 = source scale6 = “4.0”

Thank for the help but it gave me a strange arctifact:

Integer Scale: OFF AR: : 16:9

Here’s I what I want it look like: Integer Scale ON AR: Core Provided

No problems here:

You want to make sure you set the aspect ratio to 16:9 and disable integer scaling (the shader handles the integer scale and needs the full 16:9 canvas to work with).

[code]shaders = 8 shader0 = …/ntsc/shaders/ntsc-pass1-svideo-2phase.cg filter_linear0 = false wrap_mode0 = clamp_to_border frame_count_mod0 = 2 mipmap_input0 = false alias0 = float_framebuffer0 = true srgb_framebuffer0 = false scale_type_x0 = absolute scale_x0 = 1280 scale_type_y0 = source scale_y0 = 1.000000 shader1 = …/ntsc/shaders/ntsc-pass2-2phase-gamma.cg filter_linear1 = false wrap_mode1 = clamp_to_border mipmap_input1 = false alias1 = float_framebuffer1 = false srgb_framebuffer1 = false scale_type_x1 = source scale_x1 = 0.500000 scale_type_y1 = source scale_y1 = 1.000000 shader2 = …/crt/shaders/crt-easymode-halation/linearize.cg filter_linear2 = false wrap_mode2 = clamp_to_border mipmap_input2 = false alias2 = float_framebuffer2 = false srgb_framebuffer2 = true scale_type_x2 = source scale_x2 = 1.000000 scale_type_y2 = source scale_y2 = 1.000000 shader3 = …/crt/shaders/crt-easymode-halation/blur_horiz.cg filter_linear3 = false wrap_mode3 = clamp_to_border mipmap_input3 = false alias3 = float_framebuffer3 = false srgb_framebuffer3 = true scale_type_x3 = source scale_x3 = 1.000000 scale_type_y3 = source scale_y3 = 1.000000 shader4 = …/crt/shaders/crt-easymode-halation/blur_vert.cg filter_linear4 = false wrap_mode4 = clamp_to_border mipmap_input4 = false alias4 = float_framebuffer4 = false srgb_framebuffer4 = true scale_type_x4 = source scale_x4 = 1.000000 scale_type_y4 = source scale_y4 = 1.000000 shader5 = …/crt/shaders/crt-easymode-halation/threshold.cg filter_linear5 = false wrap_mode5 = clamp_to_border mipmap_input5 = false alias5 = float_framebuffer5 = false srgb_framebuffer5 = true scale_type_x5 = source scale_x5 = 1.000000 scale_type_y5 = source scale_y5 = 1.000000 shader6 = …/crt/shaders/crt-easymode-halation/crt-easymode-halation.cg filter_linear6 = true wrap_mode6 = clamp_to_border mipmap_input6 = false alias6 = float_framebuffer6 = false srgb_framebuffer6 = false scale_type6 = source scale6 = “4.0” shader7 = …/borders/resources/imgborder-1080p.cg textures = bg bg = border-1080p.png

parameters = NTSC_CRT_GAMMA;NTSC_MONITOR_GAMMA;GAMMA_INPUT;GAMMA_OUTPUT;SHARPNESS_H;SHARPNESS_V;MASK_TYPE;MASK_STRENGTH_MIN;MASK_STRENGTH_MAX;MASK_SIZE;SCANLINE_STRENGTH_MIN;SCANLINE_STRENGTH_MAX;SCANLINE_BEAM_MIN;SCANLINE_BEAM_MAX;GEOM_CURVATURE;GEOM_WARP;GEOM_CORNER_SIZE;GEOM_CORNER_SMOOTH;INTERLACING_TOGGLE;HALATION;DIFFUSION;BRIGHTNESS NTSC_CRT_GAMMA = 2.500000 NTSC_MONITOR_GAMMA = 2.000000 GAMMA_INPUT = 2.400000 GAMMA_OUTPUT = 2.200000 SHARPNESS_H = 0.000000 SHARPNESS_V = 0.000000 MASK_TYPE = 1.000000 MASK_STRENGTH_MIN = 0.500000 MASK_STRENGTH_MAX = 0.500000 MASK_SIZE = 1.000000 SCANLINE_STRENGTH_MIN = 0.100000 SCANLINE_STRENGTH_MAX = 0.200000 SCANLINE_BEAM_MIN = 5.000000 SCANLINE_BEAM_MAX = 5.000000 GEOM_CURVATURE = 0.000000 GEOM_WARP = 0.000000 GEOM_CORNER_SIZE = 0.010000 GEOM_CORNER_SMOOTH = 150.000000 INTERLACING_TOGGLE = 1.000000 HALATION = 0.080000 DIFFUSION = 0.160000 BRIGHTNESS = 1.000000[/code]