#Awful performance in Nsight

8 messages · Page 1 of 1 (latest)

heady elbow
#

When I run my application outside of Nsight, I get a perfect 60fps. But when I run it with Nsight attached, it runs at 6fps, and this is reflected in the capture as well. How can I fix this?

woeful rain
#

Are you doing frame debugger or gpu trace?

heady elbow
#

frame debugger

woeful rain
#

Is it one call that is particularly slow?

heady elbow
woeful rain
#

Or are they all just slow

heady elbow
#

that event is copying from the depth texture to a R32r texture

#

this is the shader:

layout(push_constant, std430) uniform UniformBufferObject
{
    uint targetDim;
} ubo;

layout(set = 0, binding = 0) uniform texture2D inImage;
layout(set = 0, binding = 1) uniform sampler g_sampler;

layout(location = 0) out vec4 outcolor;

void main()
{
    vec2 texcoord = vec2(gl_FragCoord.x / float(ubo.targetDim), gl_FragCoord.y / float(ubo.targetDim));
    outcolor = texture(sampler2D(inImage, g_sampler), texcoord);
}