STEEL PANTHERS ENHANCED // NORTH AFRIKA

Dedicated site for the SP: Enhanced, North Afrika, American Civil War, and Vietnam mods. Hosted by freeforums.org
It is currently Wed Jun 28, 2017 1:09 am

All times are UTC - 5 hours [ DST ]



Welcome
WELCOME TO THE STEEL PANTHERS ENHANCED & NORTH AFRIKA MODS FORUM.

You are currently viewing our boards as a Guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have

* access to post topics and messages
* communicate privately with other members (PM)
* respond to polls
* upload content
* access many other special features and forum areas


Registration is fast, simple, and absolutely free, so please, join us and take advantage of the benefits the Steel Panthers Enhanced community has to offer you.


Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Arty Bug Fix Ver 2
PostPosted: Tue Sep 08, 2015 4:36 am 
Offline
Administrator
User avatar

Joined: Tue Jan 15, 2008 6:44 pm
Posts: 464
Location: Playing In the Sandbox
SPWAW Artillery screen fix version 2 (automatic)
------------------------------------------------

This is a version of the Artillery screen fix that should work automaticaly without the need to
manualy edit the AFFINITY numbers. The command line script runs a series of checks to see how many
cpu cores the users computer has and then launches SPWAW with the appropriate cpu AFFINITY value
fixing the artillery screen unresponsiveness.

Usage:
- First extract the file "SPWAW_Arty_FIX_v2.cmd" to your \Steel Panthers World at War\ -foler
(where mech.exe resides.)
- To use the fix start the game from the file "SPWAW_Arty_FIX_v2.cmd".

.
.
.


Technical information for those who are interested in how the fix works in depth:

What causes the artillery screen unresponsiveness in SPWAW is an incompatibility of the game when
run on modern multi core processors. For some reason SPWAW needs to run on the last physical cpu
core of a multi core processor.

The correct AFFINITY value depends on the number of physical cpu cores the users computer has.
So for example a standard dual core cpu needs a value of "2", a quad core cpu needs a value of "8",
a six core cpu needs a value of "20" and so on... The AFFINITY values are derived from binary code that
is then converted to a hexadecimal value. e.g. Fourth (4) core is 1000 in binary and 8 when converted
into a hexadecimal.

Rather than having the user figure out how many cpu cores his/her computer has and then finding out the
correct AFFINITY value this script handles it automaticaly. The command 'wmic cpu get NumberOfCores' is
used to find out the number of physical cpu cores.

It is worth noting that hyper threaded cores do not count when determining the correct AFFINITY value
for SPWAW. For example a single core intel CPU with Hyper-Threading should be run on AFFINITY value of "1"
since the last physical core is core #1 and the second core (#2) is just a Hyper-Threaded logical core.

The script currently supports CPU's that have up to 8 physical cores.


Attachments:
File comment: Fixes the Arty Bug
SPWAW_Arty_FIX_v2.zip [1.45 KiB]
Downloaded 74 times

_________________
Image
Top
 Profile  
 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Donate Now
Donate Now



Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
Report Violation

Design By Poker Bandits  

suspicion-preferred