MAGFest 2019

Sup peeps! You may have noticed that I haven’t written a blog post for a while, but this week is different! This past weekend was MAGFest 2019, and, as Frank mentioned last week, he was unable to come. Since I ended up flying solo for this show, it only makes sense for me to touch base to talk about it!

MAGFest, and MIVS in particular, is always awesome, but this year was a little different. Frank and I usually drive down together, man the booth together, and basically work together on anything that needs to be done. With someone else there, it doesn’t seem that daunting, but it’s a pretty big task to take on alone – I feel bad for all of the conventions I’m unable to attend that Frank manages alone!

 

So It Begins…

After getting up at 4 am to catch my bus down to Maryland, I set up shop in the MIVS showroom. People started filtering in, and the convention had well and truly begun!

img_20190103_130622

Come play Where Shadows Slumber!

The first thing I noticed was that it felt like fewer people were coming over to the Where Shadows Slumber booth. At first I attributed this to the fact that it was the first day of the show, but it ended up being a theme throughout the weekend. I quickly figured out what it was – because I had taken the bus down, I didn’t have room to bring everything we normally bring to shows, including our banner. Without it, the biggest piece of marketing on the table is no larger than a normal piece of paper. Because of our unique art style, actually seeing a screenshot of the game is what makes people approach the booth – since there wasn’t anything large showcasing the art, a lot fewer people decided to engage. A lot of fellow indies at these shows lament about how hard it is to showcase a mobile game, but this was the first time that I really felt it.

That was made a little more sour by the fact that the game next to us, One Step From Eden, was really awesome, and their booth showcased it very well. People were crowding in front of it, which was both a blessing and a curse – sometimes people waiting for a turn to play would trickle over and play Where Shadows Slumber, but other times the crowd would spill over and block the view of our booth. Of course, I would never begrudge them for it – they’re fellow indies, and they managed to make a great game that people love, so I’m glad they got so much attention!

That small speed bump aside, the show was pretty awesome. Our player to bug ratio was the highest it’s ever been, almost everyone who sat down and gave the game a chance ended up loving it, and we actually had a few people buy the game on the spot, which was a new (and really awesome) experience. Overall, it’s this fact that made this weekend, and pretty much all of the shows we go to, worth it – people love the game.

bookstore

Image credit: xkcd.com

In fact, for the first time, someone came up to the booth, started playing the game, and ended up actually beating it. To be fair, she played about half of it on Friday and picked up where she left off on Saturday, but it’s still quite an achievement. Any slight annoyance I might have felt about someone playing the entire game without buying it was salved when she brought not one, or two, but three more people over to the booth to come play her favorite game of the weekend. In fact, on Sunday, before I left, she stopped by again and asked if she could have some extra buttons and cards, so she could give them to more people. I either didn’t catch her name, or I forgot it, but thanks for your help, kind stranger!

 

Lonesome Jack

When Frank found out he couldn’t come this past weekend, I knew immediately that I would still be attending; MAGFest is too big a show to give up. The reality of it – running a 4-day show by myself – didn’t hit me until I sat down to do it on Thursday morning. It really wasn’t too bad – I’ve given the Where Shadows Slumbers pitch a thousand times at this point – but there are a lot of logistics involved in these shows (making sure devices are charged, answering people’s questions, enticing passers-by to come and play, etc.) that get a lot easier when there are multiple people at the booth. One of the biggest differences was that I couldn’t really leave to get food or hit the bathroom, because there would be no one to watch the booth!

img_20190105_162205

Day 3: Look at this guy, all ready to help out

After a somewhat lonely Thursday and Friday, I decided to call in reinforcements. A friend of mine from the area was free on Saturday, and we had an extra ticket to the show for Frank, so he offered to come in and help out. Even though he didn’t have any experience running a booth, and had only played the first few levels of the game it was a huge help! After watching me talk to the first few people who showed up, he knew enough of the sales pitch to handle a newcomer if I was already in conversation with another player. In fact, just having someone there to talk to during the downtime made the day run a lot more smoothly.

I also want to throw a shoutout to Brian Intile and the team from Touhou Microgame, whose booth was immediately behind ours. We actually know them in real life, so it was fortunate that they were set up so close to us – in the stretches when neither of us had too many people to talk to, we could chat, or play each others’ games, or watch each others’ booths. Their game is also awesome (moreso if you’re invested in the Touhou Project), so if you get a chance, give it a shot!

 

Bugs and Improvements

One of the biggest differences between a show before the release of a game and one after is how we can handle things like bugs. When we’re still squarely in development, a lot of things tend to be in flux. At a lot of the shows we’ve been to previously, a bug would come up, and our reactions would fall into a couple of camps:

  • That bug’s fixed in a more recent version.
  • That bug will be fixed when we make some change that we’re planning on making.
  • That bug has something to do with X, which we’re gonna update soon, so it’ll probably end up being fixed.
  • We know about that bug, and we’re gonna fix it as soon as we get a chance!
  • I’ve never seen that bug before – if we can reproduce it, we’ll try to fix it if there’s time!

A lot of these cases have a decent amount of guesswork, and the majority of them don’t actually involve going home and fixing the bug directly.

Once the game is actually released, however, it’s a different story. There’s really only one camp that the bug can fall into:

  • We didn’t know about that bug, but we’ll fix it as soon as we get back!

Since there aren’t any big changes forthcoming, and there’s not a huge amount of work that we’re doing day-to-day, it’s a lot easier for us to figure out what’s causing the bug, we know our fix isn’t going to be invalidated by a future change, and we have more time to actually fix it! With that mindset, I kept a list of all of the bugs that I saw over the weekend (along with any places where the level and/or visual design could be improved), and I’m gonna start heading back into the code and fixing them! Fortunately, none of them were game-breaking or heavily impactful, so we don’t have to rush out a new build.

 

In Summary

img_20190105_183119

Players love Where Shadows Slumber!

All in all, MAGFest was a great show, even if I was the only one of us who was able to enjoy it. It’s well-run, and it has a good crowd – I was glad that we were accepted to the Indie Videogame Showcase, and I would totally recommend that any other indies give it a shot for 2020!

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Where Shadows Slumber is now available for purchase on the App Store, Google Play, and the Amazon App Store!

Find out more about our game at WhereShadowsSlumber.com, ask us on Twitter (@GameRevenant), Facebookitch.io, and feel free to email us directly at contact@GameRevenant.com.

Jack Kelly is the head developer and designer for Where Shadows Slumber.

The Good

In order to figure out what I was gonna write about this week, I took a quick scroll through the past few posts we’ve written, and I noticed something about the general tone of our blogs of late. Thanks to the pressure to get Where Shadows Slumber done, and the fact that we’ve entirely run out of new ideas for blog posts, everything we’ve written recently seems to have fallen into one of two camps:

  • A half-hearted explanation of a part of the game no one really wants to hear about, because we can’t afford to waste time writing blogs when we have work to do.
  • A frantic excuse for why the game hasn’t been released yet, which generally boils down to “working on this game is sucking out my soul”.

Even those descriptions fall into one of those categories! (Hint: it’s the second one). That fact aside, I’ve decided to take it in a different, more positive direction this week! Instead of talking about how much game development sucks, let’s talk about all the good that’s come from working on Where Shadows Slumber.

 

 

Lessons Learned

The first and most obvious positive result of working on Where Shadows Slumber would have to be the things that I’ve learned. Creating an entire game from the ground up in a game engine that I didn’t have much experience with has been incredibly challenging, but it has also left me with a lot of new knowledge and valuable experience.

Blogging

I’m still not the best coder on the team. That honor goes to Obe.

  • Unity itself. Unity is a very powerful, and professional, game engine. It may not have all of the depth of something like Unreal, or all of the customization of writing your own engine from the ground up, but there’s really no arguing that it’s not a “real” game engine. In fact, there is now a certification for programming in Unity.

 

  • C#. As a programmer, you get pretty used to picking up new languages, and, for the most part, it gets easier with every one you learn. The fact that I was able to learn C# isn’t the takeaway here – the fact that I was motivated to learn C# is. Without Where Shadows Slumber, I simply wouldn’t have had any reason to extend my programming repertoire.

 

  • Shaders. One of the most difficult technical challenges this project has posed has been the shaders. For the most part, the programming required for the actual game logic was similar to code I’ve written before. Shaders, however, delve into a very different type of programming. I now know far more about how Unity renders a frame than I ever thought I would, and I’m pretty happy to have that knowledge. Even if I don’t have to do any rendering work again, I’m glad to know what’s happening under the hood.

 

  • Project management. To continue a running theme throughout our blog posts, I’ll mention that this was the one that took me by surprise. When this project started, I was well aware of (most of) the technical challenges that lay ahead. What I didn’t anticipate was handling the vast array of tasks involved with actually managing a project. Where Shadows Slumber has helped me advance from a quintessential disorganized coder all the way to a slightly-less-disorganized coder!

 

There are a million other, small things that I learned throughout the production of the game, but these are the big ones. Throughout its development, Where Shadows Slumber has had a lot to teach me!

 

 

Personal Life

Another important (and perhaps more poignant) side-effect of working on Where Shadows Slumber is the personal relationships that it has helped cultivate.

17159203_1817437325174646_6524966612565150056_o

BFFs Forever!

Frank and I were friends in college, but just barely. We were in the same sketch comedy group, but outside of that, we didn’t really hang out. I guarantee that if it weren’t for Where Shadows Slumber, we wouldn’t be in contact at this point, and it probably would have been several years since we’d seen each other. Now, however, we’re definitely friends, and close friends at that. Frank and I are in nearly constant contact, which, annoying as it can be, keeps us pretty close. I don’t want to bore you by getting too gushy, so let’s just say that we do a good job of tolerating each other.

In addition to bolstering an existing friendship, this project has also created new friendships – with Alba and Noah, our sound engineers! They’re totally awesome, and I look forward to spending more time with them, hopefully even after we’re done with Where Shadows Slumber!

We may not be as close, but the other people that we’ve gotten to know are all of you! As an indie game, we have to do a lot of work to make sure people hear about the game. Throughout the past few years, we’ve been to over a dozen conventions, showcasing and pitching the game, making a name for ourselves, and, most importantly, meeting a bunch of really cool people! Seriously, all of the people we’ve met throughout this process, whether they be other game developers, fans, or just normal con-goers, are great. No matter if I’m annoyed with the game or frustrated with the drudge of development, going to a convention and seeing new people playing the game, or old fans coming back to check in, is always incredible. There are a lot of aspects of Where Shadows Slumber that I love, but that’s definitely the best part.

 

 

The Game Itself

I guess the actual most obvious result from Where Shadows Slumber would be the piles and piles of money we’re going to make from it. That, however, is not the point – as much as I would love for Where Shadows Slumber to make some money, that’s really ancillary to the whole ethos of the project.

Frank and I are avid gamers, and always have been. We set out not to make a lot of money or make the most popular game ever. We wanted to create something beautiful, something we could be proud of – and in that sense, I think we’ve done a pretty good job. When I look back on this project, I’m not going to look at my net profit – I’m going to look at Where Shadows Slumber itself, and I think I’ll always be happy with it.

trophy

I think we’ve got a chance at this one!

Of course, Where Shadows Slumber will serve as more than just an ephemeral trophy to put on my emotional mantle. The game itself is the end goal here, and there are some tangible benefits to that:

  • Money. Even though this isn’t the goal of the project, Frank and I are both hoping to make a little something for our efforts.

 

  • “Resume bait”. At some point in the future, I expect that I’ll be looking for a job. When that time comes, I’ll be handing out my resume, hoping to catch the eye of some company. But I may be just one of hundreds of applicants, all with similar experience and qualifications. How can I stand out? By having something awesome on my resume, something that other people won’t have, something that shows that I can set a goal and reach it, that I can meet technical challenges, and that I can manage a development process.

 

  • Experience. Working on Where Shadows Slumber has given me an incredible cache of experience to draw on. Pretty much any technical problem I run into, I can find a parallel with some part of the development of Where Shadows Slumber. The end result is a game that’s more than a game; every part of that game represents a different challenge and a different piece of knowledge that I can now look back on.

 

  • A trophy. I know I said that Where Shadows Slumber was more than just a trophy, but it is also that. From conception to completion, Frank and I have worked tirelessly to bring this idea to life. This is something we’ve built ourselves, from the ground up, and it always will be. It’s something we can be proud of, and something we can always look back on.

 

 

A Fond Farewell

happy3

Thanks for listening to me ramble on for a little bit. Anyone who has ever worked on a software development project (or pretty much any long project) knows just how stressful life can start to become when you reach the dreaded “crunch time”. We all end up hating our games as they come out, and I don’t want that to be the way that Where Shadows Slumber is released. So I’m glad I got a chance to take the time and share with you all the good things Where Shadows Slumber has done for me!

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

You can always find out more about our game and how awesome it is at WhereShadowsSlumber.com, find us on Twitter (@GameRevenant), Facebookitch.io, or Twitch, join the Game Revenant Discord, and feel free to email us directly with any questions or feedback at contact@GameRevenant.com.

Jack Kelly is the head developer and designer for Where Shadows Slumber.

Crunch and Burn(out)

If you’ve been following the development of Where Shadows Slumber, then you know that we’ve been working on it for a while. It was early 2015 when the core concept first came to me. Three years ago this month was when I put together the first proof-of-concept to show to Frank. The demo version of the game has been out for over a year and a half.

Game development takes a long time, especially with a tiny team, little to no funding, a full-time job, and, the biggest time-waster of all, life itself. As Frank discussed in a previous blog post, we are holding ourselves to a pretty high standard for Where Shadows Slumber, which makes development even slower.

Fortunately, after all this time, we’re finally closing in on the end. As happy as that might make you, the fans of the game, there are two people who are definitely happier about it than you are: us. As frustrated as you might be about how long it’s taking, we’re even more frustrated. Frankly, as much as we love Where Shadows Slumber, neither of us can wait until the moment it’s over.

“But Jack”, you ask incredulously, “if you love it, why do you want it to be over? You’ve managed to work on it for three years – what’s another few months?”

There are two phenomena that often creep up at around the same time in the development cycle of a game (or any project, really). Here they both are, followed by something I’ve said in the past week that represents each of them:

  • Crunch – “There’s only a little bit of work left, but there’s even less time left!”
  • Burnout – “I’ve spent so long on this game, I’m just sick of it!”

 

Night.jpg

Crunch

I’ve discussed before the “ninety-ninety” rule, so I’ll just summarize it quickly here, since it’s relevant: not only does software development take a long time, it takes significantly longer than you think it will. This is an issue when you first start your project (“it’ll probably only take 18 months or so”), but there’s no scheduled release date or external pressure at that point. Nobody really cares yet! However, it becomes a bigger issue when dealing with shorter time periods. For some reason, people have a hard time realizing that their estimates are wrong and adjusting (at least, we do). Because of that, we’re still making poor estimates for how long something will take!

This is the reason that developers inevitably end up in the dreaded state known as crunch time. We thought there were about 6 weeks of work left, but it turns out there were 12 weeks of work left. Too bad we already gave a bunch of outside parties a solid release date! Since they’re now depending on us to meet those deadlines, we have to do 12 weeks worth of work in 6 weeks!

This is the phenomenon that leads to crazy overtime, too many all-nighters, and an incredible amount of stress. If you follow game design, you’ve probably heard about it, because it somehow ends up happening to pretty much every game. If you’re involved in game design, then you’ve probably gone through it, and you know how awful it can be.

It’s a little better for us than for bigger, more established studios – we don’t have employees to pay, stockholders to appease, or a public release date to hit. That said, we don’t want Where Shadows Slumber to turn into an indie game for which development takes forever that people are perennially waiting for. It’s now or never!

 

Burnout.png

Burnout

Cascading into crunch time at full speed is pretty bad, but it’s not the worst thing in the world – we’re been working on Where Shadows Slumber for a long time, and we are both willing to put in a little extra time as we reach the end. However, one of the biggest problems is that crunch time is also usually accompanied by burnout.

When you’re just starting out on a project, everything is pretty exciting. You enjoy working on interesting problems like pathfinding and game mechanics, and you don’t even mind fixing any bugs that come up. On the other hand, once you’ve been working on a game for a long time, you’re pretty much sick of it. All of the interesting stuff is already implemented, so the only things left to work on are tiny quality improvements (“does this look better when the position is 0.4 or 0.41? How about 0.42?”), annoying, subtle, or hard-to-reproduce bugs (“this was working last week, but a change to a different piece of code is somehow causing it to break, but only ~10% of the time”), and tasks that you intentionally avoided because they aren’t interesting or fun (“how many setPass calls will this scene render when running on a 6-year old Android phone? Is that too many?”).

None of these tasks are really very enjoyable – so not only has your excitement about the work decreased, but so has the objective fun-ness of the work that’s left to do. This leaves you in a state of never actually wanting to work on the project. Combine that decreased drive with the increased amount of work you have to do, and it starts to become pretty obvious why the end of development for a game tends to get pretty hairy, and why we’re looking forward to being done with it.

 

Tunnel.jpg

The Light at the End of the Tunnel

Don’t worry, though – it’s not all bad! We’re both still really excited about Where Shadows Slumber, because of the amount of work we’ve put into it. We’re both dedicated to the cause, and we’re not gonna let a little extra work put a stop to it (even if it ends up slowing us down).

The purpose of this blog post is two-fold. On one, more selfish hand, I want to offer up to our adoring fans an explanation for why we haven’t finished the game yet. We know a lot of you love the game, and are really looking forward to it, and many of you have shown us that by popping up and saying hi at various conventions. The past 8 months or so have been a real whirlwind, both personally and professionally, and our timeline has been shifting around quite a bit as a result. So I wanted to offer a bit of an explanation, as well as reassure you that we’re still working on Where Shadows Slumber, and we’re not gonna let it fall by the wayside!

The other reason for this post is to serve as a sort of warning, albeit a likely redundant one. For anyone working on their own game (or any project, really), it’s very important to take time management seriously. Ending up in the crunch time/burnout trap is an awful place to be. Despite this, most developers (indie and AAA alike) end up here, because it’s hard for people to grasp how time-consuming the last 10% of a project can be. So, if you take away anything from this post, I hope you do your best to allow enough time at the end of development to get your game out without ending up there. You’ll end up there anyway, but maybe by knowing about it ahead of time, you won’t be there for long.

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

You can always find out more about our game and how freaking long it’s taking us to finish it at WhereShadowsSlumber.com, find us on Twitter (@GameRevenant), Facebookitch.io, or Twitch, join the Game Revenant Discord, and feel free to email us directly with any questions or feedback at contact@GameRevenant.com.

Jack Kelly is the head developer and designer for Where Shadows Slumber.

Unity’s Performance Debugging Tools

Last week I discussed some of the basics of how rendering works in Unity. As I mentioned, all of that was setup for this week’s blog post. Since I’m working on rendering optimization now, I figured it would be a great time to go over the debugging tools Unity provides in order to aid rendering performance. Online resources can be a little scarcer for rendering than they are for other aspects of coding, so hopefully anyone who’s working on their own game might glean some useful information from this post. And even if you’re not working on anything right now, I hope you follow along and maybe learn a bit!

Unity is a nice little game engine, and, as such, it does a lot of the work for you. For the most part, when making a game, you don’t have to worry about the nitty-gritty stuff like rendering. When building for mobile, however (especially when you have specific graphics/lighting customization), you might have to descend into shader-land. Fortunately, Unity provides a few tools that can help you to deal with optimizing your rendering pipeline.

 

4-24-Profiler.JPG

Profiler

The first step in fixing rendering performance issues is to know about them. The best way to do that is with the Profiler window (Window -> Profiler). While you’re running your game, the Profiler keeps track of a lot of incredibly useful information, like how long each frame takes to render, split up by category. For instance, the Profiler will tell me that a frame took 60 milliseconds to run, 40 of which were due rendering and 15 from script execution, etc. This is the first place you should check when trying to improve performance – there’s no point in optimizing your rendering if it’s actually your scripts that are running slowly!

profiler

So much information!

For the purposes of rendering, there’s an entire Profiler section! The Rendering Profiler keeps track of the number of batches, setPass calls, triangles, and vertices in each frame. Looking here for inconsistencies, spikes, and just high numbers in general is a good way to get an idea of why your game is taking so long to render. The Profiler also has a lot of other info that’s useful for diagnosing and debugging performance problems. I really recommend profiling your game and thoroughly looking through the results to get as much information about how your game is running as possible.

 

android_debug_bridge

Android Debug Bridge

While profiling in the editor is pretty useful, it doesn’t tell us much – of course our game will be fast on a great big computer, but how does it run on a crappy phone?

The is where ADB, or the Android Debug Bridge, comes in. ADB allows your computer to communicate with your Android phone about all sorts of stuff. Specifically (for our use cases), it allows you to profile your game while it’s running on a device. If you plug your phone into your computer, build the game directly to your phone, and open the profiler, you should see some results. This is the information we want, because it tells a much truer story about how your game runs on a phone.

Where Shadows Slumber, for instance, runs at ~200 fps in the Unity editor. When I plug my phone (the Google Pixel 2) into the profile, I get a framerate of ~60 fps. This is pretty good, so I know our game can run on newer devices. However, when I plug in my old phone (a broken HTC One M8), I get closer to ~12 fps. Looking at the profile during this run will give me much more useful information about what I should fix, since this is the device where performance is actually suffering. If you’re making any big decisions or changes based on profiler results, make sure those results come from your actual targeted device, and not just from the editor.

ADB usually comes with the Android SDK – if you have the Android SDK set up with Unity (which allows you to build to Android devices), then you should be able to use ADB with the profiler pretty painlessly.

I should also mention that there might be an equivalent tool for iOS debugging, but, as I do all of my development on a Windows machine, and all of my testing on an Android phone, I wouldn’t know what it is. Sorry!

 

4-24-Header

Frame Debugger

The next most important tool for rendering performance is the Frame Debugger (Window -> Frame Debugger). While the Profiler tells us a lot about what’s happening during rendering as a whole, it still treats the rendering process as a black box, not letting us see what’s actually happening. The is where the Frame Debugger comes in – it allows us to see, step by step, exactly what the GPU is doing to render our scene.

As I mentioned last week, the GPU renders the scene through a bunch of draw calls. The Frame Debugger allows us to see what each of those draw calls is drawing. This allows us to determine which materials/shaders are causing the most draw calls, which is one of the biggest contributors to rendering lag. It also provides a bunch of information about each draw call, such as the properties passed to the shader or geometry details. The important thing that it tells you is why this draw call wasn’t batched with the previous draw call.

frame debugger

All of this happens in a single frame

Batching is Unity’s first defense against rendering lag, so it makes sense to batch as much stuff into a single draw call as possible. Because rendering is such a complex process, there are a lot of reasons why draw calls can’t be batched together – certain rendering components simply can’t be batched, meshes with too many vertices or negative scaling can’t be batched, etc. The frame debugger will tell you why each draw call isn’t batched with the previous one, so you can determine if there are any changes you can make that might reduce the number of draw calls, thereby improving rendering performance.

For example, in Where Shadows Slumber, we re-use meshes in certain places. Sometimes, if we require a “mirrored” look we’ll reuse a mesh, and then set the scale to -1. This was before we really looked into rendering performance, and, unfortunately, it causes problems – a mesh with negative scaling can’t be batched with a mesh with positive scaling, so this ends up creating multiple draw calls. Rather than setting the scale of the object to -1, we simply import a new, mirrored mesh and update the object, allowing these draw calls to be batched and improving performance.

 

4-24-Stats.JPG

 

Stats

That’s it for the heavy-hitters; between the Profiler, Frame Debugger, and ADB, you should be able to get a pretty good idea of what’s going on in render-land. Unfortunately, digging through them can take a while – sometimes you just want a quick indicator of what’s going on in your scene. Enter the Stats window.

The Stats window (click “Stats” in the Game View) is a small overlay in the game view which gives you a quick rundown of various rendering indicators in real time. It’s not as in-depth, but it gives a much quicker picture of performance.

stats

That’s a lot of batches!

While it sounds like the stats window doesn’t add much – after all, the Profiler can give you the same information – I’ve found it to be very useful. The Profiler is probably better when you’re actively debugging rendering performance, but the stats window allows you to notice places where rendering performance might take a hit, even when you’re doing other things.

When I’m testing some other part of the game on my computer, I’m not going to notice any rendering lag, because my computer is so much more powerful than a phone. I’m also not going to be looking at the Profiler or Frame Debugger, because I’m not worrying about rendering at the moment. However, if I have the stats window open and I notice that the number of draw calls is in the hundreds, then I know something is going on. At that point I can get out the Profiler and see what’s happening – but I wouldn’t even have known there was anything amiss if it weren’t for the stats window.

 

4-24-SceneView.JPG

Scene View Draw Mode

As we get further and further down the list, we’re moving from “debugging all-star” to “it’s useful, but you probably won’t use it much”. Scene View Draw Modes fall into this category, but they’re still good to know about. You can access different Scene View Draw Modes by clicking the drop down menu at the top right of the scene view window.

The Scene View in Unity is one of the main windows that you use to make your game – it shows everything in the scene, allowing you to move around through the scene and select, move, rotate, scale, etc., any game objects. Usually the Scene View just displays the objects exactly as they would be displayed in the game. However, it has a bunch of other modes, and some of them are actually pretty useful. The two that I find the most useful when considering rendering concerns are listed below, although they’re all worth checking out:

Shaded Wireframe: This is my default draw mode, as it looks pretty similar to the normal shaded mode. The difference is that it also shows all of the triangles and vertices that you’re drawing. This is useful because certain shader operations are performed once for every vertex. Decreasing the number of vertices in your scene can give you a bit of a performance boost, and the shaded wireframe draw mode helps you see when you might have too many vertices.

3-4toomanytris

The shaded wireframe shows that there are too many polys.

Overdraw: This mode draws each object as a single transparent color. This makes it very easy to see when multiple objects are being drawn in the same spot on the screen. Since the GPU has to draw every pixel of each object (even if that pixel will be overwritten later), it ends up wasting some calculations. Areas that are very bright will waste even more calculations. Switching to this draw mode every so often lets you know if there are any places where you might want to remove some meshes.

 

161004-worst-hacks-history-feaure

The Internet!

It should pretty much go without saying, but one of your best resources for debugging performance is the internet. Unfortunately, when it comes to rendering in Unity, the information out there is pretty scarce. Unlike with normal imperative coding, where you can simply Google “how to pathfinding” and get 30 implementations, you have to work a bit harder with rendering stuff. I find it’s best to do what you can and only resort to the internet with very specific questions. That said, there is still a lot of helpful information out there. You just have to know going in that only one of every three stack overflow questions makes any sense, and only one of every four Unity forum threads are using the most recent APIs. It’s like “Googling: Nightmare Mode”!

For anyone reading this post who is actually working on rendering stuff – I’m very, very sorry. I hope that this post and the tools I discussed help to shed at least a little bit of light in the dark underworld that is shader-land, and I hope you can achieve your rendering goals and make it back to the mortal realm before your soul is forever lost.

For everyone else who hasn’t done any rendering stuff, I hope you learned a bit, and that maybe I inspired you to get involved with some rendering code! It’s really not that bad, I promise!

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

If you didn’t already have a working knowledge of rendering, I hope this post helped! If you do know about rendering stuff, I hope you don’t hate me too much for my imprecision! You can always find out more about our game at WhereShadowsSlumber.com, find us on Twitter (@GameRevenant), Facebookitch.io, or Twitch, join the Game Revenant Discord, and feel free to email us directly with any questions or feedback at contact@GameRevenant.com.

Jack Kelly is the head developer and designer for Where Shadows Slumber.