Skip to content

Big Performance Update and Bug Fix

Choose a tag to compare

@camybiohazard camybiohazard released this 04 Nov 11:12
· 18 commits to main since this release

❗First a Disclaimer❗

This project is a work in progress and will have issues. You should read the code yourself if you plan to run this.

Optimizations

  • Last release has a bug on Windows with anisotropic causing lower than usual framerates on some machines. This has been fixed.
  • Performance is night and day improved, users should see average 15-25 higher FPS with less drops in busy areas.
  • Per pixel lighting has been heavily optimized with no loss in quality.
  • Ambient occlusion has 2 settings. Low only calculates every real game frames and keeps calculations for in-between frames. This helps when using display rate frames and the difference in quality is not noticeable. When in motion the calculations may trail a little but you get a good deal of performance back
  • Targeted fix for z-fighting on pipe corridor elevator door in Antarctica.

Automatic update notifications

  • Once a day when you launch the game it will check for an update and notify you on the title screen. This simply checks Github latest against your version and shares no info. Turn off in the gameplay tab if you prefer not to get the notifications.

Experimental always have knife option

  • Turning this on means you always have a knife to use the quick knife. Normal inventory knives still exist but you can put them in the storage box and still do the quick knife. This is off by default and still stress testing. If you're interested in testing it, enable it and please report any issues you have with it.

Fixes

  • You can now push boxes and other pushable objects while running.
  • Bug with anisotropic causing low framerates is fixed. The user would experience this bug even if the setting was off. Now with it on or off have good performance
  • Fixed a bug with original quick knife implementation and weapon shortcuts. If user spammed map, inventory, or options button while Claire was lowering the knife or swapping weapons it could cause a race condition leading to mismatch in weapon equipped in-game vs inventory. Worst case it would crash, specifically when pressing options or map buttons. These buttons now wait until knife is completely lowered or the swap has fully occurred before accepting input.

Biggest Changes Below for Last Version

Lighting and graphics

Flashlight 🔦

  • Press L on the keyboard or click the left stick to switch a flashlight on and off in play. Both are rebindable in CONTROLS.
  • It lights the floor ahead of Claire or Chris, follows your aim, and glows faintly around them, so you can see it even when the camera faces them. Beam is bigger when you aim.
  • It runs on a battery that lasts 4 minutes and recharges in 3 while the light is off. When it's low, the beam dims and flickers; when it's empty, it goes out.
  • A battery icon above the ammo counter shows the charge.
  • Turn the whole feature off with Flashlight (DISPLAY → LIGHTING).

Lighting modes

Choose how dark the game is with Lighting. Lamps, fires and the flashlight keep their full strength in every mode:

  • Original: the PS2's lighting.
  • Balanced (default): a little darker and moodier.
  • Horror: deep shadows.
  • Nightmare: almost nothing but lamps, fires and your flashlight lights the way. This mode essentially functions as a new difficulty, many areas are completely dark and the flashlight is essential.

Also new:

  • Light falloff: Smooth (default): lamps and fires fade out gently at the edge of their reach, instead of cutting off.
  • Soft shading: softer shading on characters and objects.
  • Per-pixel lighting: lights are calculated for every pixel, so pools of lamplight show across large floors and walls, and shading on characters is smooth.

Post-processing

  • Bloom: fire, lamps, muzzle flashes and other bright things glow, with a slightly warmer picture. Text, the HUD, menus and movies don't glow.
  • Color grading: a filmic look. Highlights roll off instead of clipping, the darkest tones go deeper, and shadows lean teal while highlights lean warm.
  • Ambient occlusion: soft contact shadows in corners, creases and where characters and objects meet the floor.

HDR

  • Support for HDR added in the display tab

Surfaces

  • Wet surfaces: in the rain, floors are wet, and lamps, the moon and your flashlight glint off them.
  • Surface materials: metal, tile, glass, wood and other surfaces catch highlights from the lights and your flashlight.
    • This release includes a work-in-progress mods/materials.ini with many of the game's textures already set up.
    • You can add more yourself with the picker in the F2 window: click a surface and choose its material. be sure screen effects, vignette, and cutscene bars are off in settings before using material picker to select material in the environment as it tends to choose those effects instead of what you want.
    • If you've made your own changes, back up your mods/materials.ini before unpacking a new release over it.

Image quality

  • Anisotropic filtering (16x by default): floors and walls stay sharp into the distance instead of blurring. Railings and fences are left as they are.
  • Dithering (on by default): removes color banding in dark gradients.

Gameplay

  • You now move while aiming using modern gamepad controls in third person camera complete with walking animations. Toggle in the settings, on by default.
  • You can now cycle through weapons with dpad by enabling weapon shortcuts in the settings. Off by default.

Known Issue

  • AO causes a dark silhouette in front of Claire in submarine dock when in fixed cameras working on a fix. Please report any issues you have.

What's Next?

  • After testing this and making sure performance is where we need it to be I think optional difficulty with new content and puzzles and a new game plus would be a good place to go.

Notes

  • The flashlight, per-pixel lighting, wet surfaces and materials need the native 3D renderer, which is on by default.
  • Everything works with HDR output.
  • See docs/USER_GUIDE.md for every option.
  • You need your own game to run this project.

Full Changelog: 1.0.7...1.0.8