Wednesday, 30 November 2016

Jam Enslaver Plays...No Man's Sky LIVE


A couple of weeks ago I started playing the pen-and-paper RPG Stars Without Number online with some of my friends from the Games Only Podcast. If you haven't watched it yet the archive of the live stream is up on YouTube and I can recommend watching it: we've set up some really fun, unusual characters who's adventures I'm looking forward to discovering over the coming months.

Having to buy a webcam to be on Stars Without Number, and then highly enjoying the experience of doing the live stream itself, meant that I had started to think about doing my own live stream playing a game. The thing that was holding me back was the lack of a game I was really excited to play. The week before I had been accepted into the Gwent closed beta and thought it would be useful to show off that game, but since it's a multiplayer game I wasn't confident that I could talk about all the things I wanted to and also concentrate on playing the game.

Then on Sunday Hello Games released their first big update for No Man's Sky, a game I had really wanted to like but bounced off after only a few hours. As soon as I saw the news that they had added a substantial amount of content to the game I had the idea to run a live stream to find out what was the deal with this new patch.

Before I could do that I had to do some set up, which is why I'm writing a blog post about it. Firstly I should mention that I was using OBS since that seems to be the de-facto standard open-source application for setting up live streams. It allows easy combining of various different media sources including my webcam, the Roxio which I was using to capture footage from the PS4, and my microphone. I was even able to compose a couple of different 'scenes' before I started which allowed me to switch the view of the livestream to show off the cool artwork that Hello Games had put on their website to announce the patch. Once again I used the trick of piping the audio out of my monitor into the Line In port of my PC and using the listen functionality to be able to hear the sound of the game through the headphones plugged into the computer.

Since I'm still very new to live streaming I wasn't sure about what would happen to the video after I was done. I spent some time playing around with Twitch's settings and found a way of getting it to archive the stream, but I was also aware that the quality of that recording would be very dependent on how well my internet connection was behaving at the time. Luckily OBS has a really cool feature that allows it to record and stream at the same time, so I had a nice local copy once I was done that I could just upload directly to YouTube.

The only real problem I encountered was with using the webcam, which is understandable since this is the first time I was using it to record. For some reason OBS was recognising that the webcam was plugged in but not showing anything on-screen. The fix turned out to with setting OBS to use the camera's default resolution. Presumably the cheap webcam I bought doesn't present a usable default resolution that OBS can use and it was just showing nothing. Setting a custom resolution of 1080p solved the issue immediately.

Something I discovered after I had finished recording was a sync issue between the video from the webcam and the video from the Roxio. As I've mentioned in previous posts, the Roxio footage comes with a roughly 1 second lag. The footage on the webcam, on the other hand, has no noticeable lag and thus there are times in the video where I seem to react to things happening in the game before they actually happen. I'm going to experiment with introducing a lag to the webcam video to fix this issue, something that you can supposedly do in OBS. I'll report back following my next stream on how that goes!

I had a lot of fun doing this live stream and plan to do more in future! Look out for those soon. I'm also starting to think about what game I want to tackle for my next review...

Saturday, 20 August 2016

Jam Enslaver Plays...Shadow of the Colossus - Episodes 12, 13, 14, 15 & 16

The final episodes of my journey through Shadow of the Colossus were largely uneventful from a technical perspective, until I got to the last episode. I'm still not entirely sure what happened, but for some reason the two hour original episode that I recorded disappeared after the usual encoding step that the Roxio software does to turn it into an MP4. I suspect that my hard drive ran out of space as it was trying to write the new file.

The most frustrating thing about this is that the whole episode recorded perfectly well, and I even saw the video file sitting where it always does as an M2TS file, which Roxio uses for the conversion and then deletes. I suspect that the Roxio software wasn't written to expect file write errors and even though the newly encoded MP4 didn't get saved to the hard drive it went ahead and deleted the source file anyway!

Oh well, I recorded another episode which was much shorter and finished off the series. I've been thinking of a few ideas of what I'm going to do next, one of which is something not related to videos so I'll talk more about that when I have more to show. Other ideas for different video series that I might do are taking shape so we'll see what comes of that.

Thank you again for watching!

Monday, 18 July 2016

Cable Management: Improving Cooling in My Gaming PC, Part 2

So here was the situation: I had moved a couple of components around inside the computer to try and improve the flow of air coming into the case. Things had improved considerably, but 3DMark was still saying that at 92.6% framerate stability so there was still work to be done.

So many cables!

The most obvious thing to do was deal with the thick bundle of cables going through the middle of the case. I had used a cable tie to make it as narrow as possible but even at the thinnest part it had a diameter of about 2cm. I knew that at some point I wanted to tidy things up, and finding out that even with all the fans on the case I still wasn't getting enough cooling was motivation to put things right. There were two things in my way:
  1. The CPU power cable that comes out of my power supply was only just long enough to reach the socket on the motherboard. In my old PC the PSU had been mounted at the top of the case so the cable didn't need to be very long, but UNICORN-31 has the PSU at the bottom.
  2. I'm really bad with cable ties. I had a handful that came with the CPU cooler but had already wasted most of them trying to tie up cables and then realising I needed to move them!
Solving the first problem was pretty straight-forward: I just needed to buy an extension for the power cable, which I found on Newegg for about $3! Then I could run the cable through the cavity that the case creates behind the motherboard. I almost had a problem because the hole in the motherboard mounting plate was partially blocked by the motherboard itself, but with a bit of pushing I managed to get the surprisingly wide plug head through the gap and plugged in to the socket.

The obvious answer to the second problem is to just buy a whole bunch of cable ties, but I found something even better: reusable velcro ties! This was a huge help for me as it meant I was completely free to experiment with how I secured the cables and even tie things back temporarily whilst I worked with other cables. I really can't recommend them enough!

With this new-found confidence I tackled the bundle of cables. These could be broken up into a number of categories: main power cables for things like the motherboard itself and the video card, smaller auxiliary power cables for things like the hard drives and optical drive, fan control cables which run from the case fans and CPU cooler, and the myriad of tiny wires running from the control panel on the case that do things like make the power switch work or illuminate the hard-drive access LED. The goal of cable management is to have as much of the wires as possible sitting in the gap behind the motherboard, so step 1 was to untie the cables from each other and push them through the nearest hole.


It seemed like the obvious choice to tackle the bulky power cables first, especially the motherboard cable since it's probably thicker than all the other wires put together. I also have a lot of unnecessary wires of this type because the PSU is presumably designed to support a second graphics card, and also because my old case had a lot of LEDs which had their own dedicated power cable. As you can imagine, this proved to be the hardest part of the whole project. The gap for cables on this case isn't very wide, so anywhere were two of these thicker cables overlapped made it difficult to close the case. 

After about half an hour trying different ways of keeping the cables as separate as possible I decided to change tactics. Instead of running the excess of the main motherboard cable into the cavity, I used the small area in front of the power supply. I also ran the smaller power cables through this area and tucked them into the cap underneath the hard drive.

The last obstacle was the auxiliary power cables. The cables themselves are pretty thin but they have a number of fairly large plugs attached since they act kind of like wall outlets inside the computer (you can see one in the photo above, it has the white molex plugs attached). Again, my PSU has way more of these than I actually need as it has two such cables, each with four molex plugs. All the fan cases are connected to just one plug, and the optical drive needs a plug as well, which leaves two un-used on one chain and a whole other chain to spare! Eventually I found the perfect place: in the empty drive bay below the DVD drive, out of the way of the fans but still in a central position so that all the components that need them can be easily plugged in. After that it was easy to secure the smaller cables behind the motherboard and close the case!

Much better!

As you can see there are now no cables running through the main area of the case. You can see the larger cables tucked into the bottom, and some of the smaller cables through the larger hole in the motherboard plate. Not the tidiest case, perhaps, but much, much better than what I had before!

Now came the moment of truth: with the case still open I turned the power on to make sure everything was hooked up and working properly. At first everything seemed to be okay: the familiar beep from the system speaker and pattern of LEDs showed that the motherboard was happy. Then, I caught a whiff of something burning and panicked! Had I run a cable too close to something hot? Was something not seated properly? This could be really bad! No, as it turns out, my wife had chosen that exact moment to light a candle in the next room! After sharing a laugh and giving my heart enough time to climb back down out of my mouth, I checked everything out on the computer and found it to be working perfectly.

I had one more trick up my sleeve for improving the cooling, but wanted to see the results of my labour with the cables. Closing the case back up I ran another benchmark and was pleased to discover that 3DMark was now reporting a 99.6% frame rate stability (at some point I need to re-run this test because we had had the house's AC running for a while and the ambient temperature was much lower than when I had been experiencing problems). Not exactly a lot of room for improvement, but I had already spent the money on a fan card and wanted to see what difference it made.


I had never heard of adding extra fans to a computer before, let alone one that mounts into a PCI-slot and blows air upwards. It seems like most people use these to increase the flow of air into their GPU, but since my video card already has two pretty good fans I wanted to use this to improve cooling on the top of the card. I mounted it in the slot directly above the video card, close enough to suck the hot air away from the top of the card and blow it towards the output fans at the top of the case (as well as provide more air going into the CPU cooling tower. As you can see from the picture the card plugs into the standard molex power cables, which I had positioned in the nearby drive bay and thus reached easily.


Once again I ran the benchmark and was amazed to see the result now at 99.7%. My time working in my university physics labs tells me that this is probably not a statistically significant result, but pleasing nonetheless! I'm also very pleased that the fan card's LEDs are the same colour as the case fans.

So that's how I managed to sort out the cooling in my computer, only spending around $20 in total and just using a bit of common sense. Things have been working well on the computer since then, although I have yet to try out one of the games that was giving me the most trouble. I'll report back when I have more to talk about.

I hope this was informative and interesting for anyone else like me who's a novice with building computers and is a bit unsure how to proceed with cable management. It seems to make a much bigger difference than I expected, and is very much worth the time and effort.

Edit: I re-ran the stress test twice after a day of not having the AC on in the house, with an ambient temperature of 26°C and the results were 99.5% and 99.6%.

Friday, 15 July 2016

Air Flow: Improving Cooling in My Gaming PC, Part 1

It's been a couple of months since I built my computer, and recently I decided that I wasn't quite finished with it yet. I had just finished playing Uncharted 4, not quite ready to jump into a big commitment like the new Witcher 3 DLC, and I wanted to test out what the new rig could do. As it so happened, one of my friends had gifted me the new Mad Max game on Steam, so I decided to see how well UNICORN-31 coped when confronted with a triple-A video game not yet a year old.

The answer, it turns out, was not well. The game would run fine for about 60 seconds and then start to get awful frame-rate drops that made the game feel like it was running in slow motion! I tried fiddling with the graphics settings for a while but even on the lowest this still happened. I read up about it online, found a number of people with similar problems who all recommended different things, none of which worked for me, and decided that this was why PC games tend to be cheaper than console ones: sometimes your specific hardware setup is going to clash with the way the game is made and not work perfectly.

I moved on to another game, Divinity: Original Sin, which I've owned for a while and wanted to try out, especially since they released a free 'enhanced edition' upgrade some time last year. Things initially seemed good, the gorgeous 3D title screen running at a smooth 60fps. But once again, when in-game, things began to chug after a couple of minutes. Divinity doesn't have nearly so many knobs and sliders in its graphics options, but after trying a couple of variations I was still getting the same problem. From what I read online, my conclusion was that I had a problem with cooling: when first starting a game when the graphics card and CPU were cool everything was running smoothly, but as soon as things began to heat up inside the case performance would drop significantly. The message was clear: I needed to improve cooling inside my computer! 

One of the things I've learned at my time at Facebook is that if you're going to undertake a project, it's important to be able to measure its success. So the first thing I did was take advantage of the Steam sale and buy 3DMark, an application used to benchmark the performance of gaming PCs. It offers a few different functions, including a benchmark suite which renders various graphically intense scenarios and measures how well the system handles them, and a stress test in which it plays the same loop over and over again to show if system performance degrades over time. The results were much worse than expected: the benchmark ran around 10fps, and the stress test showed a stability of only 12% in framerate! I opened up the case and assessed my options.


The first thing that occurred to me was the position of the hard drives. Hard drive bays are always located towards the front lower part of a computer case, which means that they tend to be right in front of the main input fans. When building the computer I put my solid-state drive (SSD) in a lower slot and the hard-disc drive (HDD) above it (see picture), because I knew that platter-based hard drives actually create heat whereas solid-state drives do not and thus it would make more sense for the HDD to be in a more direct air-flow. I also left a gap between them because it matched up with the spacing of the plugs on the power cable. As a result, the bulky hard-drive was blocking one of the fans providing air-flow into the case! A quick swap relegated it to the bottom of the case and put the much smaller solid-state drive in the slot directly above it, meaning that the two input fans were now much less obstructed.

The second thing I looked at was the positioning of the video card. I had it mounted in the top-most PCI-slot, which meant that there was about a 2cm clearance between the top of the card and the CPU cooling tower. The GPU has a pair of built-in fans on the underside which blow air upwards into the heat-sink, which cools the underside of the card nicely. My thought was that with the top of the card so close to the cooling tower and with relatively little air blowing across it this side of the card might be getting too hot. So, I moved the GPU to the bottom PCI-slot, so that the top of the card would get more air blowing over it.

After closing up the case and running the stress test again, I was pleased to find that the stability was now 92% (the benchmark was still pretty low, but it's designed for much higher-end GPUs). Whilst that's a huge improvement over what was happening before, it's still not a pass according to 3DMark. There was still work to be done!

I decided that now was the time to actually make the effort to sort out the huge bundle of cables going through the middle of my computer case. As you can see from the picture, they form a trunk about 3cm in diameter at the widest point which can't help the air flowing from the front of the case. It's a bit hard to see but I also have the power cable for the CPU running diagonally from the bottom centre (where it comes out of the power supply) to the top left (where it plugs into the motherboard) because that's the only way the cable would reach! As a result, it touches both the GPU and the cooling tower, which doesn't seem like a good idea!

Look out for Part 2 where I'll talk about what I did to tidy up my cables, as well as add a bit more control to the flow of air through the case!

Friday, 8 July 2016

Jam Enslaver Plays...Shadow of the Colossus - Episodes 08, 09, 10 & 11

As expected, not a lot has changed in my recording setup for the last month, so I haven't had much to write about here! I'm planning on doing a bit more work on my PC very soon related to improving the cooling and finally sorting out the cables, but until then here are the latest four episodes.

Sunday, 5 June 2016

Jam Enslaver Plays...Shadow of the Colossus - Episodes 06 & 07


My new recording setup continues to work well, especially in regards to how much more quickly it allows me to post new videos! Rendering times which used to be up in the 2 - 3 hour range are now a much more comfortable 30 minutes. Not only that, but a subtle other change has been that I no longer need to split up rendering of the videos.

The effects I use in the title sequence use a lot of layering and masking to create the effect of the video clip being inside the book. On my old system I would render this part separately first and then later incorporate it into the actual episode. Now, though, the system is powerful enough to do the whole thing in one go!

Monday, 23 May 2016

Building A New Computer: The Story of UNICORN-31

The time had finally come. DRAKE-22, the PC that I had bought in October 2007, which had taken me through four generations of Windows, which had moved with me countless times including all the way from London to San Francisco, was at last starting to stumble in its duties. Eight-and-a-half years is an extremely long time to own a computer, showing that my initial investment of over £2000 was well made, but with increasingly frequent system hangs and extremely long video-rendering periods it was time to put the old workhorse out to pasture and upgrade to a newer model.

I had never built a computer before because it sounded scary. Hearing people talk about applying thermal paste and being careful not to zap sensitive components with static electricity, it sounded like a recipe for spending a lot of money and ending up with a massive headache. There's an episode of Top Gear where the presenters have to put together a kit-car, upon which one of them observes "Would you drive a car built by us?" That neatly sums up how I felt about trusting myself to build the machine that I would go on to rely on for the best part of a decade.

Having completed the task I'm happy to say that it's not quite as scary as I had thought, but it did involve a lot of time, stress, frustration, worry and sore knees. Things did not go perfectly smoothly, but overall I'm glad of the experience. I learned a lot, and hopefully I can share some of that learning with other would-be DIY PC builders.

Parts

I'll start off by listing the parts that I used:
  • Intel Core i7-6700K 8M Skylake Quad-Core 4.0 GHz CPU
  • ASUS Z170-A motherboard
  • DIYPC Gamemax-W White case
  • Cooler Master Hyper 212 EVO CPU cooler
  • G.SKILL Ripjaws V Series 2 x 8GB DDR4 memory

Parts taken from the old machine
On top of these I re-used some components from my old machine:
  • nVidia 760 GTX graphics card
  • 250GB SSD and 250GB HDD
  • 700W power supply
  • DVD R/W drive
I was particularly keen to make use of the video card because I had only bought it a couple of years ago after the one I bought with the old computer started failing. I had thought about re-using the old RAM as well but since it was DDR2 it wouldn't have fit in the new motherboard.

Putting It All Together

The cooler and motherboard inside the case
Using the How Stuff Works guide to building a computer I worked for a few hours putting all the parts together. The step that I had been the most nervous about, applying the thermal paste, was actually not very difficult. The cooler I bought came with a tiny tube of paste so it would have been quite difficult to use too much. I knew I was aiming to get as even a layer as possible across as much of the CPU as possible to form a seal with the cooler above so I applied a blob in the middle of the CPU and then pressed the cooler on top. It was at that point that I realised I didn't know which direction the cooler should be facing (for anyone wondering, the fan should blow towards the back of the case). There was an anxious period where I was sliding and twisting the cooler on top of the CPU to get it into the correct orientation. In retrospect this might have actually helped get a thinner, more even layer of paste, but at the time I was quite worried about whether I had done it right.

Everything else was faily simple, for the most part it's impossible to plug something into the wrong socket on a motherboard. The main challenge was getting the motherboard into the case, which took a little bit of adjustment to get the ports on the back to line up with the faceplate on the case. After that most effort came from finding the right angle and positioning of the computer to reach in and hook up all the cables.

Troubleshooting

After many hours of fitting components into each other and finding the right socket for very, very tiny wires to fit into, it was time to power up the computer and see what happened.

I saw the case LEDs light up, heard the fans whir into action, but nothing on the screen. When you're tired and have spent a really long time working on something, there's nothing quite like the feeling that you're going to have to do it all over again. Or worse, that you need to spend more time figuring out what went wrong and fixing it, potentially having to deal with faulty components that need to be returned to the manufacturer for a refund. I spent another hour or so that night trying different things, including connecting my monitor up to all the different VGA plugs on the motherboard and video card in case I had the wrong one, and trying different SATA ports for the hard drives. No luck, and eventually I accepted defeat knowing that it would be much easier to continue in the morning after I had had a chance to rest and calm down.

What I did glean from that first evening's frantic work was that the How Stuff Works guide is tremendously unhelpful for the average person trying to figure out why the computer they just built isn't working. The main point of their troubleshooting section is to try to figure out if any components are broken by swapping them out for others. I don't know about you, but I don't have an extra CPU or motherboard lying around for this purpose.

I spent most of the night worrying about what the problem might be. Maybe I had seated the CPU incorrectly, or applied too much thermal paste. Maybe the CPU had been broken when I fitted the cooler; it had seemed to apply a very large amount of force when all the screws were in place. Perhaps the motherboard had a fault somewhere. My imagination had no shortage of ideas for things that could have gone wrong.

The next morning I looked around online and found a check-list that someone had written, and as it turns out this was much more helpful. So helpful in fact that I only needed to follow the first step. This step was very simple: read the motherboard manual carefully. I hadn't really considered this before because I was following a guide, but on opening the manual I discovered pretty much everything I needed to figure out what was going wrong. The motherboard had various small LEDs on it that would light up red to show if something wasn't working, and I was able to use these in conjunction with the manual to figure out that the CPU was actually fine and it was the memory that was the problem. This was surprising because I've installed RAM numerous times before and never had a problem, which is why I didn't try re-doing it the day before.

After re-seating the RAM the computer was finally able to complete its power-on self test (POST), and then it was on to easier things like installing Windows 10 and copying all my backed-up data from an external hard drive onto the new computer.

The Name

I like to name my computers, using a scheme that I came up with years ago that has actually proved quite useful since it gives me an idea of how long I've had a particular machine. My first gaming rig was DRAKE-22, so called because I was 22 years old at the time, and because it was an Alienware and I had just learned what the Drake equation was.

I already had a name picked out for the new machine. I had decided to get a white case because I wanted a change and liked how it looked, and so I was thinking of a white knight motif and calling it KNIGHT-31. However, when everything was finally put together and working, and I plugged in the wireless adaptor to the USB ports on the top of the case to start downloading updates, the right name was immediately obvious.
Thus, UNICORN-31 got its name.

Final Thoughts

In conclusion, my main piece of advice for anyone building a PC:

READ THE MOTHERBOARD'S MANUAL

I know it seems like a lot of stuff you don't need to know but it's actually very helpful throughout the whole process. Not only will it explain what all the lights and indicators are on the motherboard, it will also direct you immediately to the right connector for every other component. Mine even had decent instructions on how to install most parts which would have been helpful if I had seen them before I started.

I've been using the computer for over a week now and am very pleased with the performance boost. Episode 05 of Shadow of the Colossus demonstrated just how much more powerful the CPU in UNICORN-31 is than that in DRAKE-22: the 32 minute episode rendered in about 26 minutes, a dramatic improvement from the 3 hours that the old computer took to render an episode of similar length.

I'm sure that I'll continue to tinker with things over time, but for now I'm glad to have completed my first ever PC build.