-
http://nvidia.custhelp.com/app/answers/detail/a_id/3507/~/generating-an-event-trace-log-for-gpuview
-
https://msdn.microsoft.com/en-us/library/windows/desktop/jj585574(v=vs.85).aspx
-
https://docs.microsoft.com/en-us/windows/desktop/direct2d/profiling-directx-applications
-
https://knarkowicz.wordpress.com/2013/05/25/simple-gpuview-custom-event-markers/
-
https://software.intel.com/en-us/articles/removing-cpu-gpu-sync-stalls-in-galactic-civilizations-3 ( https://www.intel.com/content/www/us/en/developer/articles/case-study/removing-cpu-gpu-sync-stalls-in-galactic-civilizations-3.html )
This file contains hidden or 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 <stdio.h> | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #define streq(a, b) (!strcmp((a), (b))) | |
| #ifndef __USE_GNU | |
| #define __USE_GNU |
This file contains hidden or 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
| // My investigations on the C standard compliance of Gob and related techniques: | |
| // https://gist.github.com/pervognsen/5249a405fe7d76ded1cf08ed50fa9176 | |
| #pragma once | |
| #include <stdint.h> | |
| #pragma pack(push, 8) | |
| #if __cplusplus >= 201103L || (__cplusplus && _MSC_VER >= 1900) |
This file contains hidden or 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
| From metal documentation: | |
| "Command buffer and command encoder objects are transient and designed for a single use. | |
| They are very inexpensive to allocate and deallocate, so their creation methods return autoreleased objects." | |
| https://developer.apple.com/library/content/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Cmd-Submiss/Cmd-Submiss.html | |
| Autorelease example: | |
| NSAutoreleasePool* autoreleasePool = [[NSAutoreleasePool alloc] init]; | |
| //c is an autoreleased object |
This article is also available here.
Before you continue, if you don't know what IMGUI is don't bother reading this post, just ignore it, don't write anything in comments section, etc. If you're curious about IMGUI see bottom of this post, otherwise continue whatever you were doing, this post it's not for you. Thanks!
If you know what IMGUI is, for context read following presentations and blog posts:
This file contains hidden or 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
| void parse_expr(Value *dest); | |
| Sym *parse_ident(void) { | |
| if (tok != TOK_IDENT) { | |
| error("Expected identifier"); | |
| } | |
| Sym *ident = tok_sym; | |
| next(); | |
| return ident; | |
| } |
This file contains hidden or 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
| import { FileLoader } from './FileLoader'; | |
| import { DataTexture } from '../textures/DataTexture'; | |
| import { DefaultLoadingManager } from './LoadingManager'; | |
| import { _Math } from '../math/Math'; | |
| function IESLoader(manager) { | |
| this.manager = (manager !== undefined) ? manager : DefaultLoadingManager; | |
| } |
OlderNewer