trzy / Supermodel

Official repository of the Sega Model 3 arcade emulator.
https://supermodel3.com
258 stars 37 forks source link

Visual studio build quirk(s) #203

Open toxieainc opened 3 days ago

toxieainc commented 3 days ago

Using my own VS2022/2019 builds, e.g. both Daytona 2 games and Scud Race feature a quirk where it seems the gas pedal (all pedals?) is stuck pressed at the beginning of the race, but only on certain tracks (e.g. on D2 medium/advanced course, SR expert course).

This does not happen with the official gcc based build.

dukeeeey commented 3 days ago

My guess is our friend the uninitialized variable. I fixed a whole bunch but there are more.

gm-matthew commented 2 days ago

Maybe it's worth trying a clean build? Try compiling with Rebuild Solution instead of Build Solution and see if it changes anything.

Occasionally I'll get weird issues - usually Supermodel failing to start - that are fixed by making a clean build. Also I personally turn off link-time code generation (LTCG) since that seems to make corrupt builds less frequent.