Skip to content

Payload 관련 성능 영향 확인 #2

@hydarlisk

Description

@hydarlisk
struct RayHit {
  uint particleId;
  float dist;
};

struct RayPayload {
	RayHit hits[MAX_HIT_PER_TRACE];
};

layout(location = 0) rayPayloadEXT RayPayload rayPayload;
  • payload를 위와 같이 구조체의 배열로 사용할 경우 성능 떨어질 수도 있다고함
  • 구조체의 배열 vs uint, float 나열 성능 비교
  • Optix 구현도 payload가 최대치인 uint 32개로 되어있는데 이로 인한 register pressure와 성능 확인

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions