Last Resort Mod Blog

Frame Rate using '-windows' command - September 20, 2015

When running Swat 3 if you switch your desktop to 16-bit colour and use the -windows command line argument you can can get the game to run in a window at a much better framerate.

When you use this command it overrides your 3D setting choice in the Last Resort mod and uses the 2D menu setting for both 2D and the 3D portion of the game.  Hope I haven't confused you yet.

Below is an example of how you would do this using the Last Resort launcher:

 

Last Resort mod turned on - DirectX hardware rendering -window CLI:

2D Menu Frame Rate:

  • 800x600 - 220 fps
  • 1024x768 - 200 fps
  • 1280x1024 - 179 fps
  • 1440x900 - 214 fps

3D In Game Frame Rate:

  • 800x600 -  280 fps
  • 1024x768 -  318 fps
  • 1280x1024 -  303 fps
  • 1440x900 -  302 fps

 

Last Resort mod turned on - WineD3D (OpenGL wrapper) -window CLI:

2D Menu Frame Rate:

  • 800x600 - 507 fps
  • 1024x768 - 423 fps
  • 1280x1024 - 308 fps
  • 1440x900 - 348 fps

3D In Game Frame Rate:

  • 800x600 -  58 fps
  • 1024x768 -  51 fps
  • 1280x1024 -  45 fps
  • 1440x900 -  45.5 fps

Conclusion:

- Massive frame rate improvement with window mode when using DirectX

- No advantage in window mode with WineD3D (OpenGL) over full screen mode.

Click image to enlarge

Write comment (0 Comments)

Frame Rate Tests - September 19, 2015

EDIT:  All of these frame rate tests were done with, as I discovered, faulty Nvidia drivers.  If you revert to version 353.62 you get normal performance on the 2D menus.

 

Recently someone on the GOG.com forums mentioned that the Last Resort mod was causing all of his FPS issues.   I decided to test this out to see how much truth there was to this.

My other reason for testing out my frame rate is that I have recently have had a lot of stuttering while playing Swat 3 in Windows 7.   I am almost 100% certain this is caused by poor Nvidia drivers because in the past I had the same issue for a few months until Nvidia released a new driver.  When I use WineD3D to force Swat 3 to run with OpenGL I got a much better frame rate (or so it seemed). 

I should explain a little about my system I tested this on and my methodology of testing.

  • EVGA Nvidia Geforce GTX 960 4GB RAM
  • 8GB Corsair RAM
  • Gigabyte GA-970A-DS3 Motherboard
  • AMD-FX 4100 Quad Core, 3600 Mhz
  • Windows 7 Ultimate 64-Bit
  • Nvidia driver 355.82

I used the Mission B map (Gett's house) for all the tests in 3D.  No additional mods were activated. No additional officer AI added to the squad.  Using Swat 3's built in STATS command I viewed the framerate on both the 2D menus and in the 3D portion of the game once the map had launched.

Each time the map started up in Swat 3 it would take about 18 seconds for the frame rate to settle down.   I always waited until the FPS settled down before taking a reading to get accurate results.   I always recorded the numbers without moving the mouse so the camera was always at the same exact spot.  For the 2D measurement I always used the OPERATIONS screen.

Last Resort mod turned on - DirectX hardware rendering

2D Menu Frame Rate:

  • 800x600 - 6.0 fps
  • 1024x768 - 3.6 fps
  • 1280x1024 - 2.3 fps
  • 1440x900 - 2.1 fps

3D In Game Frame Rate:

  • 800x600 - 60.3 fps
  • 1024x768 - 60 fps
  • 1280x1024 - 30.4 fps
  • 1440x900 - 30.4 fps
  • 1980x1024 - 26 fps

 

Last Resort mod turned on - WineD3D (OpenGL wrapper)

2D Menu Frame Rate (fluctuated more):

  • 800x600 - 560 to 570 fps
  • 1024x768 - 506 to 510 fps
  • 1280x1024 - 398 to 395 fps
  • 1440x900 - 397 to 403 fps

3D In Game Frame Rate (fluctuated more):

  • 800x600 - 57-60 fps
  • 1024x768 - 51.9 to 52.9 fps
  • 1280x1024 - 46.5 to 47.1 fps
  • 1440x900 - 44.3 to 44.8 fps
  • 1980x1024 - 34.6 to 36.5 fps

 

I didn't bother posting any stats with the Last Resort mod turned off (vanilla Swat 3 in other words) because they were identical to when the mod is on.   The 800x600 2D menus had the exact same frame rate with the mod on or off.  3D performance wasn't affected by the mod being on or off either. It is possible though in the future once more textures are replaced in the various maps we may start seeing a difference on video cards with smaller amounts of RAM.

The Last Resort mod did cause a FPS reduction in the 2D menus as you increased the resolution.   In other words if you ran the 800x600 2D menus you did get a better frame rate than if you chose the largest 1440x900 2D menus.   This wasn't a problem when I used WineD3D because my frame rate was in the hundreds on the 2D menus! 

Conclusion:

The Last Resort mod is not the cause of the stuttering that people are having in Swat 3 with Windows 7, 8, and 10.   If you are already having frame rate troubles then choosing a higher resolution 2D menu in Swat 3 only makes the existing problem worse. 

With Windows 7 I believe the real problem is DirectX + Nvidia Drivers.   Windows 8 and 10 only emulates 16-bit colour mode and all older games that use Direct Draw are having frame rate issues from what I have read.   It isn't just Swat 3 having issues with the newer versions of Windows.

Click image to enlarge

Write comment (0 Comments)

WineD3D updated - September 18, 2015

WineD3D was updated at the beginning of this month and I recommend you get this new version if you are using it for Swat 3.   This version fixes the screen tearing issue it that I was having in the 3D portion of the game.

What is WineD3D and why would you need it?   WineD3D is a wrapper to force Swat 3 to run in OpenGL mode instead of DirectX.   I find that the latest Nvidia drivers don't run well under Windows 7 and you end up with unplayable framerates in Swat 3.   The only problem is that many people with AMD video cards report that it doesn't work well with their hardware (due to poor OpenGL support?).

Installation is a breeze.  Once you download WineD3D just unzip it and copy three files into your main Swat 3 folder: ddraw.dll, libwine.dll, wined3d.dll

Visit the WineD3D website to get the latest version.

Write comment (0 Comments)

LED Clock fixes and Windows 7 issues - September 17, 2015

While I was going through my newest texture replacements for the Last Resort mod I saw a few that I could improve upon in Mission B - The Getts house.

If you may recall this map takes place at night and the lighting inside the house is very subdued.   I noticed that none of the LED clocks on this map glowed like they would in real life.   There were 3 LED clocks (one in Victor Getts' bedroom, one in his son's bedroom, and one on the microwave in the kitchen) and all of them were completely dark.  Swat 3 doesn't have textures that emit light but you can fake it by placing a light entity near the object (you can see the result of my fix in the image below...remember normally the numbers of the clock aren't viewable unless you point your flashlight directly at it).

I spent the rest of my evening fixing this by using AlienAbducter's amazing SCN Editor tool.   First I had to determine the X,Y,Z coordinates of the light entity I needed to add to the map.   Once I had that info I had to decide on an appropriate colour of light in RGB format.   I then had to add the other fields that are required to make a light entity work properly in the game (a total of 8 are used).   I next had to strip out the existing light map out of the .SCN and then rebuild the light maps with the new light entities.    Of course things needed tweaking several times so it took a while to get it right.   None of this would have been possible without AlienAbducter's app.

Yes, it was a lot of work for not much payoff, lol. 


I would like to spend a minute complaining about how hard it is to get Swat 3 to run well now on my Windows 7 machine.   Well, to be honest I don't think Windows 7 is to blame entirely.   The game used to work great for me with Windows 7. What I actually think is the big problem is Nvidia video card drivers.  Lately the game stutters like a sonovabitch.   My machine can handle GTA5 on Steam without any problems so it certainly can handle this ancient game from 1999.   In the past Nvidia has released drivers that temporarily caused horrible frame rate issues with Swat 3 but usually they fixed it a few driver releases later.   Unfortunately it has been a while now and they still haven't fixed the problem.

Right now the only way I have found to improve the frame rate is to install WineD3D to trick the game into running in OpenGL instead of DirectX. Although the stuttering is fixed the overall visual quality seems to suffer a lot.

Swat 3 won't run properly on my Windows 8.1 laptop.   Now it seems Swat 3 won't run properly on my main Windows 7 desktop computer without affecting the visual quality.   This sort of crap will kill any remaining audience that Swat 3 still had.

Write comment (0 Comments)

Summer Is Almost Over Already - August 29, 2015

No I haven't forgotten about this project.  Last weekend I moved all the various new textures into the proper folders in preparation for packaging up for release.    It has been far too long between releases (years!) and I doubt there are very many Swat 3 players out there. I am doing this as a creative outlet in between playing modern games such as GTA 5, Company of Heroes 2, Civ 5, Sniper Elite 3, etc.

When I work on new replacement textures I make a special mod folder and activate it as I work on a map.   For instance for the first mission I create a mod folder called "Mission_A_new" and put all of the original textures from the game in there unzipped.  I will run the map and look for textures that look especially offensive and that would benefit the most from fixing.   At the end of the process I am left with the new textures and a lot of the original textures.   I have to sort them by the last modified date and then copy and paste them into the Last Resort folder.

To be honest, it has been so long since the last release of the mod that I don't remember some of the fixes and changes that I have made.   Yes, I tried to keep my READ ME file updated with the changes but I am sure a few things will slip through the documentation.

I recently updated my laptop to Windows 10 in the hopes of testing everything on the new operating system.   I want to see if I can get Swat 3 to even run without any mods.

Hopefully I can find a few people to beta test this release before I post it on the website.   I will keep you updated here on the blog as that date gets closer.    I probably won't have much free time until mid September to work on it.

Write comment (0 Comments)

Back at real life work - May 1, 2015

Just a quick update since I haven't posted in a while.

Despite my best intentions I didn't get around to releasing the mod update before I started back at work.    We just finished rigging the studio for a kids TV show and are into the first week of shooting.   It is still very hectic and chaotic at work but hopefully it will calm down in the next week so that I have some left over energy to work on the mod.

Write comment (0 Comments)
2018  Swat 3 Last Resort - Swat 3 Game Modification
© 2001 Activision Publishing, Inc. Activision and SWAT are registered trademarks of
Activision Publishing, Inc. All other trademarks are property of their respective owners.