Skip to content

Instantly share code, notes, and snippets.

0.04 µs glPushGroupMarkerEXT(0, "Camera.ImageEffects");
0.03 µs glPopGroupMarkerEXT(); returns: "Camera.ImageEffects"
0.03 µs glPushGroupMarkerEXT(0, "Camera.GUILayer");
0.02 µs glPopGroupMarkerEXT(); returns: "Camera.GUILayer"
0.02 µs glPopGroupMarkerEXT(); returns: "Camera.Render"
0.03 µs glPushGroupMarkerEXT(0, "GUI.Repaint");
0.03 µs glPopGroupMarkerEXT(); returns: "GUI.Repaint"
0.38 µs glBindBuffer(GL_COPY_WRITE_BUFFER, 2);
******************************************************************************************
Title:
Poor performance due to synchronous buffer access
---
Replication project and gl traces are included.
We've been debugging performance issues that occur specifically on both the OpenGLCore and OpenGL2 renderers. On machines with fast enough GPUs, this issue does occur but the GPU might be fast enough to complete work without huge frame drops.
We have not run into it on Windows.
It occurs particularly on MacBooks, Macbook Pros, and Macbook Airs.
@andykorth
andykorth / gist:b6abf59895c8f6a67964
Created March 24, 2016 20:19
Pencil.gaming callbacks
public static GlfwMouseButtonFun mouseCallback;
public static GlfwKeyFun keyCallback;
protected virtual void Setup(){
// Setup mouse callbacks:
mouseCallback += HandleMouseClick;
Glfw.SetMouseButtonCallback(mouseCallback);
Making the Music of Verdant Skies
Our team is trying to establish a coherent mood for Verdant Skies and a big part of that comes from Troy’s music. To begin the project, he established a palette of instruments that coalesced around guitar, drums, bass, and organ. Those aren’t everything, but it has done a nice job to establish the frontier-like elements of the game–an untamed wild, expansive and uncharted.
The trailer needed to invite the audience in and preview the musical style. For that, Troy decided a piano would be fitting. He used the EastWest Steinway virtual instrument treated with Logic’s built-in Space Designer convolution reverb plugin. This lent a grounded yet otherworldly, shimmering sound. He applied a tape delay to the pedal tones as well.
[img]http://kortham.net/temp/VerdantSkiesTracks.png[/img]
To structure the music, Troy focused on the three main scenes: a woman walking along a lake, a man walking through a swamp on an autumn day, and two friends meeting near a grove of trees. Each offe
@andykorth
andykorth / gist:bfae4d0480ca799da588
Created February 29, 2016 18:40
Unity 5.2.4f1 Build Size Report
Textures 2.0 mb 28.9%
Meshes 0.0 kb 0.0%
Animations 0.0 kb 0.0%
Sounds 0.0 kb 0.0%
Shaders 37.7 kb 0.5%
Other Assets 1.0 kb 0.0%
Levels 145.8 kb 2.1%
Scripts 816.9 kb 11.5%
@andykorth
andykorth / gist:375f9d699e33e71f6718
Created March 20, 2015 18:14
Move a parent to where the children are
[MenuItem("Selection/Center on first child", false, 301)]
static void Center() {
Object[] objs = Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab);
foreach (GameObject go in objs){
Transform child = go.transform.GetChild(0);
Vector3 childPos = child.position;
Supported extensions:
GL_ARB_color_buffer_float
GL_ARB_depth_buffer_float
GL_ARB_depth_clamp
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_draw_elements_base_vertex
GL_ARB_draw_instanced
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
// scheduling test object:
- (void) setupScheduleCallbackTimeTest
{
// Test pausing the content node with extra parent nodes.
self.subTitle = @"Andy is cool";
CCSprite *sprite = [SchedulerTestSprite spriteWithImageNamed:@"Sprites/bird.png"];
[self.contentNode addChild:sprite];
// *********************************
@andykorth
andykorth / gist:510c01f9e1fad12d3779
Last active August 29, 2015 14:12
Update calls with scheduling
2014-12-31 11:37:17.688 cocos2d: animation started with frame interval: 60.00
...
2014-12-31 11:45:41.834 Update called with dt=0.016794 time=3.183816
2014-12-31 11:45:41.850 Fixed Update called with dt=0.016667 time=3.200000
2014-12-31 11:45:41.851 Scheduled selector called #31 with t=0.100000
***************
2014-12-31 11:45:41.851 Update called with dt=0.016767 time=3.200583
2014-12-31 11:45:41.867 Fixed Update called with dt=0.016667 time=3.216667
@andykorth
andykorth / gist:c20fe488a973e76dd410
Created October 1, 2014 21:43
Use imageconvert to make icons.
def system(cmd)
puts cmd
Kernel.system(cmd)
end
def convert(filename, size)
ext = File.extname(filename)
base = File.basename(filename, ext)
dir = File.dirname(filename)