[core/nvnflinger] Rewrite GetBufferHistory #528

Merged
Shinmegumi merged 9 commits from change-GetBufferHistory into master 2025-09-16 19:41:52 +02:00
Member

This rewrite should improve performance with the buffer history by changing the complexity level to O(1).
Replace std::vector with std::array to ensure that elements are allocated on the stack rather than on the free store.
Avoid expensive resizing at runtime.
Adjust buffer states at the right locations.
Tightly pack the BufferHistoryInfo struct to ensure that it only occupies 28 bytes.

This rewrite should improve performance with the buffer history by changing the complexity level to O(1). Replace std::vector with std::array to ensure that elements are allocated on the stack rather than on the free store. Avoid expensive resizing at runtime. Adjust buffer states at the right locations. Tightly pack the BufferHistoryInfo struct to ensure that it only occupies 28 bytes.
SDK-Chan added 1 commit 2025-09-16 19:02:48 +02:00
[core/nvnflinger] Rewrite GetBufferHistory
Some checks failed
eden-license / license-header (pull_request) Failing after 38s
e3ad859786
SDK-Chan added 1 commit 2025-09-16 19:16:49 +02:00
Update src/core/hle/service/nvnflinger/buffer_slot.h
Some checks failed
eden-license / license-header (pull_request) Failing after 39s
505bce69b5
Owner

Merging directly as these changes were already approved in #484.

Merging directly as these changes were already approved in #484.
SDK-Chan added 1 commit 2025-09-16 19:29:14 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_consumer.cpp
Some checks failed
eden-license / license-header (pull_request) Failing after 37s
9e9bac1cb6
SDK-Chan added 1 commit 2025-09-16 19:29:48 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_core.cpp
Some checks failed
eden-license / license-header (pull_request) Failing after 38s
db774e6cef
SDK-Chan added 1 commit 2025-09-16 19:30:09 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_core.h
Some checks failed
eden-license / license-header (pull_request) Failing after 38s
22fef3a487
SDK-Chan added 1 commit 2025-09-16 19:30:24 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
Some checks failed
eden-license / license-header (pull_request) Failing after 36s
9b697d118a
SDK-Chan added 1 commit 2025-09-16 19:30:45 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_producer.h
Some checks failed
eden-license / license-header (pull_request) Failing after 36s
43d2d4e67a
SDK-Chan added 1 commit 2025-09-16 19:31:04 +02:00
Update src/core/hle/service/nvnflinger/buffer_slot.h
All checks were successful
eden-license / license-header (pull_request) Successful in 36s
5cb8040a56
SDK-Chan added 1 commit 2025-09-16 19:33:49 +02:00
Update src/core/hle/service/nvnflinger/buffer_queue_producer.cpp
All checks were successful
eden-license / license-header (pull_request) Successful in 37s
35f081a34c
Owner

Confirmed all headers are good. Merging.

Confirmed all headers are good. Merging.
Shinmegumi merged commit 3ca0bde0e9 into master 2025-09-16 19:41:52 +02:00
Shinmegumi deleted branch change-GetBufferHistory 2025-09-16 19:41:53 +02:00
Sign in to join this conversation.
No description provided.