Downloads containing ddraw.ini

Downloads
Name Author Game Mode Rating
Upscale with... jjturbo9 Other N/A Download file

File preview

; cnc-ddraw - https://github.com/FunkyFr3sh/cnc-ddraw
;jjturbo9 settings for jj2+
; shader xbr-lvl1 edited by jjturbo9 (There was only a lvl2 and lvl3, so I made lvl1 with help of chatgpt) 
; and I made fsrGG.glsl with help of Google Gemini 3.1 pro. 

[ddraw]

; ### Optional settings ###
; Use the following settings to adjust the look and feel to your liking


; Stretch to custom resolution, 0 = defaults to the size game requests (cancel out by adding ; before it)

; Uncomment (remove ;) your monitor's resolution. Comment the other resolutions out (add ; before it). Only 1 resolution should be active.

; --- Standard 4:3 (Classic / Square-ish) ---
; width=800
; height=600

; width=1024
; height=768

; width=1440
; height=1080

; width=1600
; height=1200

; width=1920
; height=1440

; --- Standard 16:9 (Modern Widescreen) ---
; width=1280
; height=720

; width=1600
; height=900

; width=1920
; height=1080

width=2560
height=1440

; width=3840
; height=2160

; --- Standard 21:9 (Ultrawide) ---
; width=3440
; height=1440


;---------------------------------------------------------------------------------
; --- HIGH FPS LOW-LATENCY CPU TWEAKS I GOT FROM GOOGLE GEMINI FOR HIGH-END PCs---
;---------------------------------------------------------------------------------
; I added this with google gemini 3.1 pro (thinking level: high), it recommended this for my setup.
; But I'll keep it commented out on default, decide for yourself if you wanna use this.

; Prevents the game from sharing its CPU thread with background apps, ensuring nothing interrupts high fps rendering.
;yield=false

; Stops the wrapper from pausing the game to process background Windows events like mouse polling or volume hotkeys.
;sleep_window_messages=false

; Forces the CPU to constantly stay awake between frames to eliminate wake-up latency and guarantee perfect frame pacing. 
; More important for higher fps, if you play on lower fps, no need for this.
;sleep=0

; Acts as the modern equivalent of sleep=0 for newer wrapper versions, preventing the CPU from resting between game ticks. 
; I wasn't sure which version to use so I use both sleep= and this, it's designed to ignore commands that it doesn't understand anyways.
;no_tick_sleep=true

; Limits the game to 4 CPU cores to prevent stuttering and crashes on modern processors. 
; This keeps the game stable and ensures smooth performance at high frame rates.
; Possible values: 0 (all cores), 1 (safest for old games), 2-4 (best for high FPS and shaders).
;max_cores=4

; Smooths out color gradients to prevent "banding" (ugly stripes) in shadows and skies. 
; Set to true for a cleaner look, especially when using sharpening shaders.
;dithering=true

; Sets whether the game speed is locked to your monitor's refresh rate. 
; Possible values: true (sync to monitor), false (unlocked for higher FPS like 480).
;adjustrate=false

; Ensures the game maintains its native 70-tick speed to prevent micro-stutters or "speed-ups" on modern CPUs.
; Possible values: true (best for stability), false (standard timing).
;accuratetimers=true

; Controls how the GPU presents frames to the screen; setting this to 0 allows for the lowest possible latency.
; Possible values: 0 (immediate/unlocked), 1 (standard vsync), 2-4 (multi-buffered).
;presentation_interval=0
;---------------------------------------------------------------------------------
;---------------------------------------------------------------------------------


; Override the width/height settings shown above and always stretch to fullscreen
; Note: Can be combined with 'windowed=true' to get windowed-fullscreen aka borderless mode
fullscreen=false

; Run in windowed mode rather than going fullscreen
windowed=false

; Maintain aspect ratio
maintas=true

; Use custom aspect ratio - Example values: 4:3, 16:10, 16:9, 21:9
; aspect_ratio=4:3
; aspect_ratio=16:9

; Windowboxing / Integer Scaling
boxing=false
; Real rendering rate, -1 = screen rate, 0 = unlimited, n = cap
; Note: Does not have an impact on the game speed, to limit your game speed use 'maxgameticks='
maxfps=0

; Vertical synchronization, enable if you get tearing - (Requires 'renderer=auto/opengl*/direct3d9*')
; Note: vsync=true can fix tearing but it will cause input lag
vsync=false

; Automatic mouse sensitivity scaling
; Note: Only works if stretching is enabled. Sensitivity will be adjusted according to the size of the window
adjmouse=false

; Preliminary libretro shader support - (Requires 'renderer=opengl*') https://github.com/libretro/glsl-shaders
; 2x scaling example: https://imgur.com/a/kxsM1oY - 4x scaling example: https://imgur.com/a/wjrhpFV
; You can specify a full path to a .glsl shader file here or use one of the values listed below
; Possible values: Nearest neighbor, Bilinear, Bicubic, Lanczos, xBR-lv2
shader=Shaders\fsrGG.glsl

; Window position, -32000 = center to screen
posX=-32000
posY=-32000

; Renderer, possible values: auto, opengl, openglcore, gdi, direct3d9, direct3d9on12 (auto = try direct3d9/opengl, fallback = gdi)
renderer=opengl

; Developer mode (don't lock the cursor)
devmode=true

; Show window borders in windowed mode
border=false

; Save window position/size/state on game exit and restore it automatically on next game start
; Possible values: 0 = disabled, 1 = save to global 'ddraw' section, 2 = save to game specific section
savesettings=1

; Should the window be resizable by the user in windowed mode?
resizable=false

; Upscaling filter for the direct3d9* renderers
; Possible values: 0 = nearest-neighbor, 1 = bilinear, 2 = bicubic, 3 = lanczos (bicubic/lanczos only support 16/32bit color depth games)
d3d9_filter=0

; Disable font smoothing for fonts that are smaller than size X
anti_aliased_fonts_min_size=13

; Raise the size of small fonts to X
min_font_size=0

; Center window to screen when game changes the display resolution
; Possible values: 0 = never center, 1 = automatic, 2 = always center
center_window=0

; Inject a custom display resolution into the in-game resolution list - Example values: 960x540, 3840x2160
; Note: This setting can used for downscaling as well, you can insert resolutions higher than your monitor supports
; Note: 16:9 = 800x450 , GBA 3:2 = 640x426 , perfect 2,5 scaling vanaf 4:3 op 1440p: 768x576 1067x600
inject_resolution=800x450

; Enable upscale hack for high resolution patches (Supports C&C1, Red Alert 1, Worms 2 and KKND Xtreme)
vhack=false

; Where should screenshots be saved
screenshotdir=.\Screenshots\

; Switch between windowed/borderless modes with alt+enter rather than windowed/fullscreen modes
toggle_borderless=false

; Switch between windowed/fullscreen upscaled modes with alt+enter rather than windowed/fullscreen modes
toggle_upscaled=false

; ### Compatibility settings ###
; Use the following settings in case there are any issues with the game


; Hide WM_ACTIVATEAPP and WM_NCACTIVATE messages to prevent problems on alt+tab
noactivateapp=true

; Max game ticks per second, possible values: -1 = disabled, -2 = refresh rate, 0 = emulate 60hz vblank, 1-1000 = custom game speed
; Note: Can be used to slow down a too fast running game, fix flickering or too fast animations
; Note: Usually one of the following values will work: 60 / 30 / 25 / 20 / 15 (lower value = slower game speed)
maxgameticks=-1

; Method that should be used to limit game ticks (maxgameticks=): 0 = Automatic, 1 = TestCooperativeLevel, 2 = BltFast, 3 = Unlock, 4 = PeekMessage
limiter_type=0

; Force minimum FPS, possible values: 0 = disabled, -1 = use 'maxfps=' value, -2 = same as -1 but force full redraw, 1-1000 = custom FPS
; Note: Set this to a low value such as 5 or 10 if some parts of the game are not being displayed (e.g. menus or loading screens)
minfps=0

; Disable fullscreen-exclusive mode for the direct3d9*/opengl* renderers
; Note: Can be used in case some GUI elements like buttons/textboxes/videos/etc.. are invisible
nonexclusive=true

; Force CPU0 affinity, avoids crashes/freezing, *might* have a performance impact
; Note: Disable this if the game is not running smooth or there are sound issues
singlecpu=false

; Available display resolutions, possible values: 0 = Small list, 1 = Very small list, 2 = Full list
; Note: Set this to 2 if your chosen resolution is not working or does not show up in the list
; Note: Set this to 1 if the game is crashing on startup
resolutions=0

; Child window handling, possible values: 0 = Disabled, 1 = Display top left, 2 = Display top left + repaint, 3 = Hide, 4 = Display top left + hide
; Note: Disables upscaling if a child window was detected (to ensure the game is fully playable, may look weird though)
fixchilds=2

; Enable the following setting if your cursor doesn't lock to the window or it doesn't work properly when upscaling is enabled
hook_peekmessage=false


; Undocumented compatibility settings - These will probably not solve your problem, you should rather focus on the settings above
fix_alt_key_stuck=false
game_handles_close=false
fix_not_responding=false
no_compat_warning=false
guard_lines=200
max_resolutions=0
lock_surfaces=false
flipclear=false
rgb555=false
no_dinput_hook=false
center_cursor_fix=false
;fake_mode=640x480x32
lock_mouse_top_left=false
;win_version=95
hook=4
limit_gdi_handles=false
remove_menu=false
refresh_rate=0



; ### Hotkeys ###
; Use the following settings to configure your hotkeys, 0x00 = disabled
; Virtual-Key Codes: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes


; Switch between windowed and fullscreen mode = [Alt] + ???
keytogglefullscreen=0x08

; Switch between windowed and fullscreen mode (single key) = ???
keytogglefullscreen2=0x00

; Maximize window = [Alt] + ???
keytogglemaximize=0x22

; Maximize window (single key) = ???
keytogglemaximize2=0x00

; Unlock cursor 1 = [Ctrl] + ???
keyunlockcursor1=0x09

; Unlock cursor 2 = [Right Alt] + ???
keyunlockcursor2=0xA3

; Screenshot
keyscreenshot=0x2C



; ### Config program settings ###
; The following settings are for cnc-ddraw config.exe


; cnc-ddraw config program language, possible values: auto, english, chinese, german, spanish, russian, hungarian, french, italian, vietnamese
configlang=auto

; cnc-ddraw config program theme, possible values: Windows10, Cobalt XEMedia
configtheme=Windows10

; Hide the 'Compatibility Settings' tab in cnc-ddraw config
hide_compat_tab=false

; Allow the users to 'Restore default settings' via cnc-ddraw config
allow_reset=true