How To: Fix Unreal Tournament GOTY running too fast in Wine

I picked up Unreal Tournament GOTY edition on GoG while it was on sale for a pittance recently – but as it’s the Windows version and I wanted to run it on Linux, this means I either have to use Wine or a virtual machine. Wine happened to run the installer & the game – however it would speed up the game to ridiculous / unplayable speeds on occasion. After doing a bunch of googling about how to fix this via complex configuration file changes, limiting CPU usage etc. I saw that you could just enable VSync to fix the issue.

I have VSync enabled for OpenGL apps by default in my graphics driver settings – but it was having no effect, the game still ran too fast. It turns out that this was because UT was running in Direct3D mode, which although being translated to OpenGL calls by Wine, did not respect the VSync setting!

To fix this issue:

  1. With UT running go to the menu and choose Options | Preferences and then click [Change] under Video Driver you’ll be told that setup will occur the next time you start UT.
  2. Restart UT and in the graphics drivers screen that displays you’re likely to only see “Software Rendering” and “DirectX”… however, if you click the Show all devices radiobutton then you’ll see additional options, including OpenGL – select it.
  3. Either make sure your graphics drivers have VSync enabled under your graphics drivers OpenGL settings, or alternatively I believe you can modify the UnrealTournament.ini file and add the line:

    to the [OpenGLDrv.OpenGLRenderDevice] section.

That should be it – launch the game and it should lock to your monitors refresh, meaning zero tearing and the game runs at the correct speed. Hurrah! =D

How-To: Fix WordPress plugin updates and DB backups not working

If you, like me, got too big for your boots and tried to lock down your server using ‘best practice’ pre-rolled apache server config settings without fully understanding how they work – then good on us both for trying, but let’s never do it again.

Specifically, I tried to lock-down click-jacking like this in my httpd.conf:

There’s lots to read about click-jacking, but what was most important to me was that it pretty much knackered my WordPress install to the point where I could only update a single plugin at a time, and after every plugin updated I had to delete the “.maintenance” file to get the site back running. That and WordPress and theme updates would complete, but never TELL me they’d completed, so I’d just have to wait a while then go back to the admin page and hope for the best.

Anyway – if you have this issue, and have used X-Frame twiddling stuff in your apache config, the short answer is: Don’t.

King Creosote and Jon Hopkins – John Taylor’s Month At Sea

This track is from the King Creosote / Jon Hopkins collaboration album Diamond Mine, and this particular live version (there are four songs in the video – it’s like a mini gig) is from NPR’s “Tiny Desk Concerts”.

YouTube Preview Image
I love to look out at the sea
from the Swingpark here at Roome Bay Beach
Today John Taylor starts his month away
On a boat one-ten miles east of Aberdeen.

A dozen men, thirty days with twenty-four hours in each
Of shattered boyhood dreams and not much sleep
I’d much rather be me, for once I’d much rather be me.

A month at sea and they will surely sleep
With their heads still stuck on land
A month on land and then they’ll surely dream
Of girls they can afford but cannot have.

And in the drunken haze or on a rolling wave
Once again I’d much rather be me
I’d rather be me
Once again I’d much rather be me.

For once again I’d much rather be me.

BTW, the instrument Jon’s playing before he switches to the keyboard is called a harmonium.

Also, you can hear the album version here.