Game development with Visual Studio
Write and debug your games with Visual Studio
Build high-performance 2D and 3D games in DirectX to run on a variety of devices in the Windows family, including desktops, tablets, and phones. Visual Studio offers a great set of tools for developing DirectX games, from writing shader code and designing assets, to debugging and profiling graphics—all in the same familiar Visual Studio IDE.
Get started quickly
Get started building DirectX games in Visual Studio by using the built-in DirectX project templates. Whether you’re building a DirectX 12 or DirectX 11 game for Windows or Windows Phone, you’ll find a template that suits you.
Capture frames local or remote
Rendering problems can be tricky to troubleshoot. Visual Studio Graphics Diagnostics together with the PIX on Windows standalone tool provides an easy way to capture and analyze frames from your DirectX 10, 11 or 12 games locally or remotely. You can inspect each DirectX event, graphics object, pixel history, and look into the graphics pipeline to understand exactly what occurred during the frame. This tool also captures call stacks for each graphics event, making it easy to navigate back to your application code in Visual Studio.
Debug shader code
The same world-class debugger now works for your shader code
Debugging shader code from a captured frame is another great way to pinpoint the source of rendering problems. Simply set a breakpoint in your shader code and press F5 to debug it. You can inspect variables and expressions in Locals and Autos. If you’ve used the Visual Studio debugger for other languages before, you’ll find yourself right at home
Increase frame rate
Find expensive draw calls
Looking for ways to increase the frame rate for your game? Visual Studio Frame Analysis can come in handy. It analyzes captured frames to look for expensive draw calls and performs experiments on them to explore performance optimization opportunities – all in a nice report.
Analyze GPU usage
Understand how your game is performing on the CPU and the GPU
Use Visual Studio GPU Usage or PIX on Windows to understand how your game performs on the CPU and the GPU. GPU Usage collects data in real time and complements Frame Analysis, which is performed on captured frames in an offline fashion. The GPU Usage report will clearly show where the bottleneck is, whether it’s on the CPU or the GPU.
Shader syntax colorization
Whether your shader code is in HLSL files or FX files, the Visual Studio shader editor recognizes them. The shader editor provides syntax highlighting and braces auto-completion, making it easy to read and write shader code in Visual Studio. You can also configure the editor to use your favorite fonts and theme.
Shader files are part of your project
Just like they should be, shader files can be managed and built as part of your Visual Studio projects. Simply set the shader file properties to specify the shader type, shader model, and optimization settings you want. Visual Studio takes care of shader compilation for you.
Design pixel shaders in Visual Studio Shader Designer
If you don’t know HLSL or prefer a more visual way to create shaders, the Visual Studio Shader designer has you covered. Instead of writing shader code in an editor, you add and connect shader nodes using a graphical interface. You can apply different textures, lights, and even add and view animations in real time. Making shaders has never been easier.
View 3D models
…in Visual Studio Model Viewer
No need to leave the IDE you’re already working in just to view the latest 3D model that your artist sent you. You can view OBJ, FBX 3D models inside Visual Studio. Pan, zoom, change camera positions, view the objects with time-based animations – there’s so much to explore in the 3D world. You can also make simple edits to the models in the Model Viewer.
…in Visual Studio Image Editor
The Visual Studio Image Editor not only works great with image files, but also understands DirectDraw Surface (DDS) texture files. Besides the basic viewing and drawing functionality, you can also toggle RGBA channels, generate mip-maps, and apply filters. This image editor is capable of accomplishing many texture editing tasks.
Asset content pipeline
Manage content pipelines
Dealing with assets in various formats can be overwhelming. Visual Studio provides content pipeline management for images, models, and shaders. Simply set the file properties to use the content pipeline and configure the settings. Visual Studio will perform the format conversions for you at build time.
The Unity engine integrates into one unparalleled platform to create 2D and 3D games and interactive content. Create once and publish to 21 platforms, including all mobile platforms, WebGL, Mac, PC, and Linux desktop, web, or consoles. Use powerful cross-platform tools to make your interactive content run beautifully on any device.
Debug in Visual Studio
World-class debugging for Unity games in Visual Studio
Visual Studio brings a premium debugging experience to the Unity game engine. Identify issues quickly by debugging your Unity games in Visual Studio—set breakpoints and evaluate variables and complex expressions. You can debug your Unity game that is running either in the Unity Editor or in the Unity Player, or even debug an external managed DLL in your Unity Project.
Full featured IDE for Unity
Write code more productively by leveraging all the productivity features that Visual Studio has to offer, such as IntelliSense, refactoring, and code browsing capabilities. Customize the coding environment exactly the way you want–choose your favorite theme, color, fonts, and all the other settings. In addition, use the Unity Project Explorer to navigate and create your Unity scripts–no more switching back and forth between multiple IDEs. Create Unity script methods inside Visual Studio quickly by using the Implement MonoBehaviours and the Quick MonoBehaviours Wizards.
Unreal Engine 4 is a complete suite of game development tools made by game developers, for game developers. From 2D mobile games to console blockbusters and VR, Unreal Engine 4 gives you everything you need to start, ship, grow, and stand out from the crowd. Edit, build, and debug your Unreal games in C++ in Visual Studio to boost your productivity.
Code with Visual Studio
Unreal Engine is designed to integrate smoothly with Visual Studio, allowing you to make code changes quickly and easily in your projects to immediately see results upon compilation. Write code with powerful IntelliSense support, including a live Error List and squiggles, to speed up your workflow! Save time by taking advantage of IntelliCode’s smart suggestions of UE types. Optionally, train an IntelliCode model locally with your team’s codebase and receive specified suggestions based on your team’s types and coding patterns.
Debug with Visual Studio
Visual Studio brings a world-class debugging experience to the Unreal engine. Debug your Unreal projects easily by leveraging the extended support with visualizers in the debugger that allows easy inspection of common Unreal types such as FNames and dynamic arrays. You can also check out how your program has been performing simply by looking at the performance tips that the debugger displays in the editor.
Cocos is an open-source professional development toolkit for building games that provides a streamlined workflow for developers. With Cocos, you can quickly create projects, design games and animation clips, and package and publish games for distribution. Build Cocos games with the powerful Visual Studio IDE and debug with the world-class Visual Studio debugger to boost your productivity.
Code with Visual Studio
Cocos engine fully integrates with Visual Studio, allowing you to write code more productively by leveraging all the productivity features that Visual Studio has to offer, such as IntelliSense, refactoring, and code browsing capabilities. Compile and run your projects in Visual Studio to view the impact of your code changes right away.
Debug with Visual Studio
Leverage the powerful Visual Studio debugger to catch issues quickly. The Visual Studio debugger tightly integrates into the Cocos game developer workflow—set breakpoints and start evaluating variables and expressions. You can also check how your program has been performing simply by looking at the performance tips that the debugger displays in the editor.
Build your game back-end infrastructure
Azure provides you with choice and flexibility to build your game back-end on the cloud. For compute, you can use IaaS offerings like Virtual Machine, VM Scale sets on Windows and Linux, or leverage PaaS offerings like Service Fabric and App Service. For data storage, you can use managed database services like Azure SQL Database and Azure DocumentDB, and also MongoDB and other options from Azure Marketplace.
Keep players engaged
Enable multiplayer scenarios and leaderboards with Azure Active Directory. For instance, manage social identity providers such as Facebook, Google, and Microsoft. Manage player retention, and increase user engagement and monetization across platforms using Azure Notification Hubs and Azure Media Services.
Crunch big data for deeper game analytics
Build a powerful end-to-end game analytics platform on Azure using tools from the Cortana Intelligence Suite and big data solutions. Analyze mobile gamers’ behavior using services like Azure Machine Learning and Azure Mobile Engagement to maximize app usage, user retention, and monetization.