- Advanced DirectX12 graphics and performance | Max McMullen, Microsoft video
- Code clinic - How to Write Code the Compiler Can Actually Optimize | Mike Acton, Engine Director, Insomniac Games slideshare
- Destiny - Six years in the making | Chris Butcher, Bungie video
- Fast Iteration for Far Cry 4 - Optimizing Key Parts of the Dunia Pipeline | Remi Quenin, Engine Architect, Ubisoft pptx
- More on Vulkan and SPIR-V - The future of high-performance graphics | Khronos Group pdf video
- Parallelizing the Naughty Dog engine using fibers | Ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Copyright 2014-2020 Cameron Hart <[email protected]>. | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Lists best candidates for adding to pre-compiled headers from an | |
# output list showing all the includes during a build. | |
# | |
# By Noel Llopis - April 2005 | |
# http://www.gamesfromwithin.com | |
# | |
# Modified by Cameron Hart 2014 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
@rem Set up environment for compiling with XP support | |
@rem Gist: 8b357a25f08329636081 | |
if not "%3" == "" goto usage | |
if /i %1 == vc10 goto vc10 | |
if /i %1 == vc11 goto vc11 | |
if /i %1 == vc12 goto vc12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <tchar.h> | |
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0) | |
#define STATUS_PRIVILEGE_NOT_HELD ((NTSTATUS)0xC0000061L) | |
typedef enum _SYSTEM_INFORMATION_CLASS { | |
SystemMemoryListInformation = 80, // 80, q: SYSTEM_MEMORY_LIST_INFORMATION; s: SYSTEM_MEMORY_LIST_COMMAND (requires SeProfileSingleProcessPrivilege) | |
} SYSTEM_INFORMATION_CLASS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "tbb/tbb.h" | |
#include "tbb/concurrent_queue.h" | |
#include "tbb/task_arena.h" | |
// Based on LocalSerializer pattern which enforces execution order based on submission order | |
// https://www.threadingbuildingblocks.org/docs/help/tbb_userguide/Design_Patterns/Local_Serializer.html | |
class SerializedTaskArena | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TASK_FENCE_HPP | |
#define TASK_FENCE_HPP | |
#include <condition_variable> | |
#include <mutex> | |
class TaskFence | |
{ | |
int taskCount_; | |
std::condition_variable taskCV_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bench_f32 loop: | |
.LBB23_30: | |
vmovss (%rdi), %xmm1 | |
vmovsd 4(%rdi), %xmm2 | |
vmulss 12(%rdi), %xmm1, %xmm1 | |
vmovsd 16(%rdi), %xmm3 | |
vmulps %xmm3, %xmm2, %xmm2 | |
vaddss %xmm2, %xmm1, %xmm1 | |
vmovshdup %xmm2, %xmm2 | |
vaddss %xmm2, %xmm1, %xmm1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/imgui-examples/examples/test_window_impl.rs b/imgui-examples/examples/test_window_impl.rs | |
index c9cc5c8..e5ec03a 100644 | |
--- a/imgui-examples/examples/test_window_impl.rs | |
+++ b/imgui-examples/examples/test_window_impl.rs | |
@@ -4,9 +4,34 @@ extern crate imgui; | |
extern crate imgui_glium_renderer; | |
use imgui::*; | |
+use std::mem; | |
OlderNewer