Aftab Sultan

Talkin' Geek
Archive for the ‘starcraft 2’ Category

April 22nd, 2010

[FIX] Another StarCraft 2 lag fix

3 Comments, starcraft 2, by sultanaf.

Aside from the previous fix I posted, I have another fix for the in-game lag in StarCraft 2. The lag could be caused by the GPU rendering the frames at max speed which might cause the video card to overheat and slow down the game. The following will help by telling StarCraft 2 to limit the behavior: Open My Documents\StarCraft II Beta\variables.txt using Notepad (or any other text editor) Add the following two lines to the file: Frameratecapglue=30 Frameratecap=60 Save the txt file and you’re done. The frameratecapglue variable controls menu screens framerates. The frameratecap controls the in-game framerate. I have chosen 60 as I am running this game on a laptop (60 is the max refresh rate for my monitor) but you can choose any number that fits your configuration.

The Problem: I’ve been playing the long-awaited StarCraft 2 (Beta) recently and it doesn’t disappoint. I am running Windows 7 (64 bit) with an ATI Radeon HD 3400 video card. I ran into some complications while playing the game. Specifically, it would freeze in-game for a while and sometimes long enough for me to be dropped from the game. The Internet? At first I though it was my internet connection which was causing the lag. After some investigation, it turns out it wasn’t the internet connection (the game was also freezing during replays as well). The Video Card? Next I suspected the video card was over heating. I ran a temperature monitor with a CPU monitor while playing the game. It seems that under normal game play, the temperature was around 70 C. Once the game froze, the GPU temperature dropped and the CPU usage spiked to 100%. The CPU? After digging around a little bit, I came across a few threads on people having the same problem. They seemed to have fixed this problem by running the game on a single CPU core instead of the default multi-core setup. Specifically CPU 1 seems to be the magic core. I tried that but with no success. It was time to dig a little deeper. The Solution: The problem lies with Physx. StarCraft 2 comes with a version of Physx but with certain drivers, the latest version is required to run the game smoothly. Physx basically allows the game physics to be CPU powered rather than…

I recently had a chance to work with JQuery for a web development course. JQuery totally changed the way I think about JavaScript. The best part is the ease by which you can make AJAX calls. For those starting out with JQuery, this cheatsheet is a must have! For those who missed the xkcd fun on April Fool’s, you can still access the page here. After spending some time messing around with it trying to find the easter eggs, I ended up looking at the source code (kind of cheating, I know lol). With the beginning of summer, this means one and one thing only: StarCraft II.