mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
committed by
Henrik Rydgård
parent
1e2e04b9d2
commit
5e2f51af8e
@@ -96,6 +96,7 @@ const u8 *ParamSFOData::GetValueData(std::string_view key, unsigned int *size) c
|
||||
|
||||
std::vector<std::string> ParamSFOData::GetKeys() const {
|
||||
std::vector<std::string> result;
|
||||
result.reserve(values.size());
|
||||
for (const auto &pair : values) {
|
||||
result.push_back(pair.first);
|
||||
}
|
||||
|
||||
@@ -3381,6 +3381,7 @@ void FramebufferManagerCommon::RebindFramebuffer(const char *tag) {
|
||||
|
||||
std::vector<const VirtualFramebuffer *> FramebufferManagerCommon::GetFramebufferList() const {
|
||||
std::vector<const VirtualFramebuffer *> list;
|
||||
list.reserve(vfbs_.size());
|
||||
for (auto vfb : vfbs_) {
|
||||
list.push_back(vfb);
|
||||
}
|
||||
|
||||
@@ -1595,6 +1595,7 @@ int GPUCommon::GetCurrentPrimCount() {
|
||||
|
||||
std::vector<DisplayList> GPUCommon::ActiveDisplayLists() {
|
||||
std::vector<DisplayList> result;
|
||||
result.reserve(dlQueue.size());
|
||||
|
||||
for (int it : dlQueue) {
|
||||
result.push_back(dls[it]);
|
||||
|
||||
Reference in New Issue
Block a user