Optimize mobile rendering and extend live-client launch options
This commit is contained in:
+40
-16
@@ -44,6 +44,10 @@ std::string g_py_exec_after_login;
|
||||
std::string g_py_command_file;
|
||||
// --perf-log / MT_PERF_LOG=1: src/host/perf_log.h.
|
||||
bool g_perf_log = false;
|
||||
std::string g_login;
|
||||
std::string g_password;
|
||||
int g_slot = 0;
|
||||
bool g_auto_hunt = false;
|
||||
|
||||
bool py_exec(const std::string& code) {
|
||||
std::string err;
|
||||
@@ -255,7 +259,10 @@ int run_live_client(
|
||||
if (!g_py_exec_after_login.empty() && !py_exec(g_py_exec_after_login))
|
||||
throw std::runtime_error("--py-exec failed");
|
||||
} else {
|
||||
char login_cmd[512];
|
||||
const std::string login_user = !g_login.empty() ? g_login : (std::getenv("MT_LIVE_LOGIN") ? std::getenv("MT_LIVE_LOGIN") : FakeLoginServer::kLogin);
|
||||
const std::string login_pass = !g_password.empty() ? g_password : (std::getenv("MT_LIVE_PASSWORD") ? std::getenv("MT_LIVE_PASSWORD") : FakeLoginServer::kPassword);
|
||||
|
||||
char login_cmd[1024];
|
||||
std::snprintf(
|
||||
login_cmd,
|
||||
sizeof(login_cmd),
|
||||
@@ -269,15 +276,15 @@ int run_live_client(
|
||||
game_port,
|
||||
server_host.c_str(),
|
||||
auth_port,
|
||||
FakeLoginServer::kLogin,
|
||||
FakeLoginServer::kPassword);
|
||||
login_user.c_str(),
|
||||
login_pass.c_str());
|
||||
#ifdef __ANDROID__
|
||||
SDL_Log("live stage: submitting fake login");
|
||||
SDL_Log("live stage: submitting login for user=%s", login_user.c_str());
|
||||
#endif
|
||||
if (!py_exec(login_cmd))
|
||||
throw std::runtime_error("failed to submit login credentials");
|
||||
#ifdef __ANDROID__
|
||||
SDL_Log("live stage: fake login submitted");
|
||||
SDL_Log("live stage: login submitted");
|
||||
#endif
|
||||
|
||||
if (!pump_until(20.0, 5, [&] {
|
||||
@@ -290,20 +297,26 @@ int run_live_client(
|
||||
#endif
|
||||
|
||||
if (!selection_screen) {
|
||||
if (!py_exec("_stream.curPhaseWindow.SelectSlot(0)\n"
|
||||
"_stream.curPhaseWindow.StartGame()"))
|
||||
char select_cmd[256];
|
||||
std::snprintf(
|
||||
select_cmd,
|
||||
sizeof(select_cmd),
|
||||
"_stream.curPhaseWindow.SelectSlot(%d)\n"
|
||||
"_stream.curPhaseWindow.StartGame()",
|
||||
g_slot);
|
||||
if (!py_exec(select_cmd))
|
||||
throw std::runtime_error("failed to start game from SelectCharacterWindow");
|
||||
|
||||
if (!use_external_server) {
|
||||
if (!pump_until(30.0, 5, [&] { return server.Has("game2:client_version"); }))
|
||||
throw std::runtime_error("timed out waiting for LoadingWindow (client_version)");
|
||||
}
|
||||
if (!use_external_server) {
|
||||
if (!pump_until(30.0, 5, [&] { return server.Has("game2:client_version"); }))
|
||||
throw std::runtime_error("timed out waiting for LoadingWindow (client_version)");
|
||||
}
|
||||
|
||||
if (!pump_until(60.0, 0, [&] {
|
||||
return (use_external_server || server.Has("game2:burst_pong")) &&
|
||||
py_eval_true("isinstance(_stream.curPhaseWindow, game.GameWindow) and _stream.curPhaseWindow.IsShow()");
|
||||
}))
|
||||
throw std::runtime_error("timed out waiting for GameWindow (server error: " + server.Error() + ")");
|
||||
if (!pump_until(60.0, 0, [&] {
|
||||
return (use_external_server || server.Has("game2:burst_pong")) &&
|
||||
py_eval_true("isinstance(_stream.curPhaseWindow, game.GameWindow) and _stream.curPhaseWindow.IsShow()");
|
||||
}))
|
||||
throw std::runtime_error("timed out waiting for GameWindow (server error: " + server.Error() + ")");
|
||||
|
||||
if (PythonBoot::TouchInput() && !hide_mobile_taskbar_quickslots())
|
||||
throw std::runtime_error("failed to hide the desktop quick-slot bar in touch mode");
|
||||
@@ -311,6 +324,17 @@ int run_live_client(
|
||||
if (!configure_macos_numeric_quickslots())
|
||||
throw std::runtime_error("failed to configure numeric quick slots on macOS");
|
||||
#endif
|
||||
if (g_auto_hunt) {
|
||||
py_exec(
|
||||
"import player\n"
|
||||
"cfg = list(player.AutoHuntGetConfig())\n"
|
||||
"cfg[0] = 5000\n"
|
||||
"cfg[4] = 1\n"
|
||||
"cfg[5] = 1\n"
|
||||
"player.AutoHuntSetConfig(*cfg)\n"
|
||||
"player.AutoHuntSetEnabled(1)\n"
|
||||
);
|
||||
}
|
||||
if (!g_py_exec_after_login.empty() && !py_exec(g_py_exec_after_login))
|
||||
throw std::runtime_error("--py-exec failed");
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ extern std::string g_py_exec_after_login;
|
||||
extern std::string g_py_command_file;
|
||||
// --perf-log / MT_PERF_LOG=1: src/host/perf_log.h.
|
||||
extern bool g_perf_log;
|
||||
extern std::string g_login;
|
||||
extern std::string g_password;
|
||||
extern int g_slot;
|
||||
extern bool g_auto_hunt;
|
||||
|
||||
// Boots the 40250 client (PythonBoot) from client_dir and runs it inside the renderer until it quits.
|
||||
int run_live_client(
|
||||
|
||||
@@ -136,6 +136,10 @@ int main(int argc, char** argv) {
|
||||
else if (arg == "--safe-inset-px" && i+1 < argc) safe_inset_px = std::stoi(argv[++i]);
|
||||
else if (arg == "--show-fps") show_fps = true;
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
else if (arg == "--login" && i+1 < argc) g_login = argv[++i];
|
||||
else if (arg == "--password" && i+1 < argc) g_password = argv[++i];
|
||||
else if (arg == "--slot" && i+1 < argc) g_slot = std::stoi(argv[++i]);
|
||||
else if (arg == "--auto-hunt") g_auto_hunt = true;
|
||||
else if (arg == "--py-exec" && i+1 < argc) g_py_exec_after_login = argv[++i];
|
||||
else if (arg == "--py-command-file" && i+1 < argc) g_py_command_file = argv[++i];
|
||||
else if (arg == "--perf-log") g_perf_log = true;
|
||||
|
||||
+28
-20
@@ -41,6 +41,8 @@ void VulkanWindow::render(
|
||||
check(vkWaitForFences(device_, 1, &f_->fence, VK_TRUE, UINT64_MAX), "vkWaitForFences");
|
||||
collect_pending_gpu_timestamp(*f_);
|
||||
reset_staging(*f_);
|
||||
f_->dynamic_geom_used = 0;
|
||||
f_->dynamic_geometries.clear();
|
||||
const auto fenced = std::chrono::steady_clock::now();
|
||||
prune_textures();
|
||||
std::uint32_t image_index = 0;
|
||||
@@ -205,26 +207,32 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
back_buffer_list(in_scene).push_back(clear);
|
||||
continue;
|
||||
}
|
||||
decltype(geometries_)::iterator it;
|
||||
bool inserted = false;
|
||||
const Geometry* geometry_ptr = nullptr;
|
||||
if (draw.shared_geometry) {
|
||||
// Repeats an earlier draw of this frame, which uploaded (or kept) the geometry.
|
||||
it = geometries_.find(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
auto it = geometries_.find(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
if (it == geometries_.end()) continue;
|
||||
} else {
|
||||
geometry_ptr = &it->second;
|
||||
} else if (draw.geometry_key != 0) {
|
||||
if (draw.positions.empty() || draw.indices.empty()) continue;
|
||||
const auto signature = draw.geometry_key ? draw.geometry_revision : geometry_hash(draw);
|
||||
std::tie(it, inserted) = geometries_.try_emplace(GeometryId{draw.geometry_key, signature});
|
||||
auto [it, inserted] = geometries_.try_emplace(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
if (inserted) {
|
||||
upload_geometry(draw, it->second);
|
||||
} else if (it->second.vertex_count != draw.positions.size() / 3 ||
|
||||
it->second.index_count != draw.indices.size()) {
|
||||
throw std::runtime_error("geometry key/revision reused with a different size");
|
||||
}
|
||||
it->second.last_used_frame = frame_number_;
|
||||
active_keys.insert(draw.geometry_key);
|
||||
geometry_ptr = &it->second;
|
||||
} else {
|
||||
// Immediate / uncached geometry (geometry_key == 0: particles, damage text, etc.)
|
||||
// Bump-allocated directly into this frame's dynamic ring buffer with zero vkAllocateMemory!
|
||||
if (draw.positions.empty() || draw.indices.empty()) continue;
|
||||
auto& dyn_geom = f_->dynamic_geometries.emplace_back();
|
||||
upload_dynamic_geometry(draw, dyn_geom);
|
||||
geometry_ptr = &dyn_geom;
|
||||
}
|
||||
auto& geometry = it->second;
|
||||
if (inserted) {
|
||||
upload_geometry(draw, geometry);
|
||||
} else if (!draw.shared_geometry && (geometry.vertex_count != draw.positions.size() / 3 ||
|
||||
geometry.index_count != draw.indices.size())) {
|
||||
throw std::runtime_error("geometry key/revision reused with a different size");
|
||||
}
|
||||
geometry.last_used_frame = frame_number_;
|
||||
if (draw.geometry_key) active_keys.insert(draw.geometry_key);
|
||||
|
||||
float skin_offset_encoded = 0.0f;
|
||||
if (!draw.bone_matrices.empty() && draw.bone_matrices.size() % 16 == 0 && f_->bone_mapped) {
|
||||
@@ -277,7 +285,7 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
}
|
||||
PreparedDraw prepared_draw{};
|
||||
prepared_draw.target = target;
|
||||
prepared_draw.geometry = &geometry;
|
||||
prepared_draw.geometry = geometry_ptr;
|
||||
prepared_draw.pipeline = pipeline;
|
||||
prepared_draw.descriptor = descriptor;
|
||||
prepared_draw.constants = constants;
|
||||
@@ -297,13 +305,13 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
prepared_draw.viewport = to_scene(prepared_draw.viewport);
|
||||
back_buffer_list(true).push_back(prepared_draw);
|
||||
} else prepared_draws.push_back(prepared_draw);
|
||||
frame.vertex_count += geometry.vertex_count;
|
||||
frame.index_count += geometry.index_count;
|
||||
frame.vertex_count += geometry_ptr->vertex_count;
|
||||
frame.index_count += geometry_ptr->index_count;
|
||||
}
|
||||
for (auto it = geometries_.begin(); it != geometries_.end();) {
|
||||
const auto age = frame_number_ - it->second.last_used_frame;
|
||||
const bool obsolete_revision = it->first.key && active_keys.contains(it->first.key);
|
||||
if (age > 120 || (age > 1 && (it->first.key == 0 || obsolete_revision))) {
|
||||
if (age > 120 || (age > 1 && obsolete_revision)) {
|
||||
release_geometry(it->second);
|
||||
it = geometries_.erase(it);
|
||||
} else ++it;
|
||||
@@ -430,7 +438,7 @@ void VulkanWindow::record_passes(std::uint32_t image_index, const FrameDraws& fr
|
||||
vkCmdBindDescriptorSets(f_->command, VK_PIPELINE_BIND_POINT_GRAPHICS, layout_, 1, 1,
|
||||
&f_->bone_descriptor_set, 1, &prepared_draw.state_offset);
|
||||
const auto& geometry = *prepared_draw.geometry;
|
||||
const VkDeviceSize vertex_offset = 0;
|
||||
const VkDeviceSize vertex_offset = geometry.vertex_offset;
|
||||
vkCmdBindVertexBuffers(f_->command, 0, 1, &geometry.buffer, &vertex_offset);
|
||||
vkCmdBindIndexBuffer(f_->command, geometry.buffer, geometry.index_offset, VK_INDEX_TYPE_UINT32);
|
||||
vkCmdPushConstants(
|
||||
|
||||
@@ -163,6 +163,17 @@ void VulkanWindow::create_descriptors_and_buffers() {
|
||||
slot.ui_index_capacity = kMaxUiIndicesPerFrame;
|
||||
slot.ui_vertex_bytes = kUiVertexBytes;
|
||||
slot.staging_wanted = kStagingRingBytes;
|
||||
|
||||
void* dynamic_geom_raw = nullptr;
|
||||
create_host_buffer(
|
||||
kDynamicGeomBytes,
|
||||
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
|
||||
slot.dynamic_geom_buffer,
|
||||
slot.dynamic_geom_memory,
|
||||
&dynamic_geom_raw);
|
||||
slot.dynamic_geom_mapped = static_cast<std::uint8_t*>(dynamic_geom_raw);
|
||||
slot.dynamic_geom_capacity = kDynamicGeomBytes;
|
||||
slot.dynamic_geom_used = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,18 +392,10 @@ void VulkanWindow::release_geometry(Geometry& geometry) {
|
||||
geometry = {};
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
// D3D8 feeds opaque white for a vertex format without D3DFVF_DIFFUSE.
|
||||
static void unpack_draw_vertices(const Render3DDraw& draw, Vertex* vertices, std::size_t count) {
|
||||
const std::uint32_t default_argb = 0xffffffffu;
|
||||
const bool has_skin =
|
||||
draw.bone_indices.size() >= count * 4 && draw.bone_weights.size() >= count * 4;
|
||||
std::vector<Vertex> vertices(count);
|
||||
for (std::size_t i = 0; i < count; ++i) {
|
||||
vertices[i].position[0] = draw.positions[3*i];
|
||||
vertices[i].position[1] = draw.positions[3*i+1];
|
||||
@@ -438,7 +441,21 @@ void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry)
|
||||
vertices[i].mask_uv[1] = 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
|
||||
std::vector<Vertex> vertices(count);
|
||||
unpack_draw_vertices(draw, vertices.data(), count);
|
||||
for (auto index : draw.indices) if (index >= count) throw std::runtime_error("draw index exceeds vertex count");
|
||||
|
||||
geometry.vertex_offset = 0;
|
||||
geometry.index_offset = vertices.size() * sizeof(Vertex);
|
||||
const auto bytes = geometry.index_offset + draw.indices.size() * sizeof(std::uint32_t);
|
||||
if (bytes > 128 * 1024 * 1024) throw std::runtime_error("native geometry buffer exceeds 128 MiB");
|
||||
@@ -466,4 +483,53 @@ void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry)
|
||||
uploaded_bytes_ += bytes;
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_dynamic_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
|
||||
const VkDeviceSize vertex_bytes = count * sizeof(Vertex);
|
||||
const VkDeviceSize index_bytes = draw.indices.size() * sizeof(std::uint32_t);
|
||||
const VkDeviceSize total_bytes = vertex_bytes + index_bytes;
|
||||
if (total_bytes > 128 * 1024 * 1024)
|
||||
throw std::runtime_error("dynamic geometry buffer exceeds 128 MiB");
|
||||
|
||||
const VkDeviceSize aligned_offset = (f_->dynamic_geom_used + 15) & ~VkDeviceSize(15);
|
||||
std::uint8_t* dst = nullptr;
|
||||
|
||||
if (f_->dynamic_geom_mapped && aligned_offset + total_bytes <= f_->dynamic_geom_capacity) {
|
||||
geometry.buffer = f_->dynamic_geom_buffer;
|
||||
geometry.memory = VK_NULL_HANDLE;
|
||||
geometry.vertex_offset = aligned_offset;
|
||||
geometry.index_offset = aligned_offset + vertex_bytes;
|
||||
f_->dynamic_geom_used = aligned_offset + total_bytes;
|
||||
dst = f_->dynamic_geom_mapped + aligned_offset;
|
||||
} else {
|
||||
VkBuffer buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory memory = VK_NULL_HANDLE;
|
||||
void* mapped = nullptr;
|
||||
create_host_buffer(total_bytes, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
|
||||
buffer, memory, &mapped);
|
||||
f_->retired_buffers.emplace_back(buffer, memory);
|
||||
geometry.buffer = buffer;
|
||||
geometry.memory = memory;
|
||||
geometry.vertex_offset = 0;
|
||||
geometry.index_offset = vertex_bytes;
|
||||
dst = static_cast<std::uint8_t*>(mapped);
|
||||
}
|
||||
|
||||
unpack_draw_vertices(draw, reinterpret_cast<Vertex*>(dst), count);
|
||||
for (auto index : draw.indices) if (index >= count) throw std::runtime_error("draw index exceeds vertex count");
|
||||
std::memcpy(dst + vertex_bytes, draw.indices.data(), index_bytes);
|
||||
|
||||
geometry.vertex_count = static_cast<std::uint32_t>(count);
|
||||
geometry.index_count = static_cast<std::uint32_t>(draw.indices.size());
|
||||
geometry.last_used_frame = frame_number_;
|
||||
++upload_count_;
|
||||
uploaded_bytes_ += total_bytes;
|
||||
}
|
||||
|
||||
} // namespace mt_host
|
||||
|
||||
@@ -116,6 +116,9 @@ VulkanWindow::~VulkanWindow() {
|
||||
if (slot.ui_mapped) vkUnmapMemory(device_, slot.ui_memory);
|
||||
if (slot.ui_buffer) vkDestroyBuffer(device_, slot.ui_buffer, nullptr);
|
||||
if (slot.ui_memory) vkFreeMemory(device_, slot.ui_memory, nullptr);
|
||||
if (slot.dynamic_geom_mapped) vkUnmapMemory(device_, slot.dynamic_geom_memory);
|
||||
if (slot.dynamic_geom_buffer) vkDestroyBuffer(device_, slot.dynamic_geom_buffer, nullptr);
|
||||
if (slot.dynamic_geom_memory) vkFreeMemory(device_, slot.dynamic_geom_memory, nullptr);
|
||||
if (slot.fence) vkDestroyFence(device_, slot.fence, nullptr);
|
||||
if (slot.acquire) vkDestroySemaphore(device_, slot.acquire, nullptr);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <chrono>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <deque>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string>
|
||||
@@ -37,6 +38,7 @@ class VulkanWindow {
|
||||
struct Geometry {
|
||||
VkBuffer buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory memory = VK_NULL_HANDLE;
|
||||
VkDeviceSize vertex_offset = 0;
|
||||
VkDeviceSize index_offset = 0;
|
||||
std::uint64_t last_used_frame = 0;
|
||||
std::uint32_t vertex_count = 0, index_count = 0;
|
||||
@@ -73,7 +75,7 @@ class VulkanWindow {
|
||||
std::uint64_t last_used_frame = 0; // pruned with the textures once unused
|
||||
};
|
||||
struct PreparedDraw {
|
||||
Geometry* geometry = nullptr;
|
||||
const Geometry* geometry = nullptr;
|
||||
VkPipeline pipeline = VK_NULL_HANDLE;
|
||||
VkDescriptorSet descriptor = VK_NULL_HANDLE;
|
||||
PushConstants constants{};
|
||||
@@ -106,6 +108,7 @@ class VulkanWindow {
|
||||
static constexpr VkDeviceSize kUiBufferBytes = kUiVertexBytes + kMaxUiIndicesPerFrame * sizeof(std::uint32_t);
|
||||
static constexpr VkDeviceSize kStagingRingBytes = 4ull * 1024 * 1024;
|
||||
static constexpr VkDeviceSize kStagingRingMaxBytes = 64ull * 1024 * 1024;
|
||||
static constexpr VkDeviceSize kDynamicGeomBytes = 8ull * 1024 * 1024;
|
||||
|
||||
public:
|
||||
struct Timings {
|
||||
@@ -376,6 +379,8 @@ private:
|
||||
|
||||
void upload_geometry(const Render3DDraw& draw, Geometry& geometry);
|
||||
|
||||
void upload_dynamic_geometry(const Render3DDraw& draw, Geometry& geometry);
|
||||
|
||||
bool vsync_ = true;
|
||||
VkPresentModeKHR present_mode_ = VK_PRESENT_MODE_FIFO_KHR;
|
||||
float timestamp_period_ns_ = 1.0f;
|
||||
@@ -467,6 +472,12 @@ private:
|
||||
VkDeviceMemory staging_memory = VK_NULL_HANDLE;
|
||||
std::uint8_t* staging_mapped = nullptr;
|
||||
VkDeviceSize staging_capacity = 0, staging_used = 0, staging_wanted = 0;
|
||||
// Host-visible buffer for immediate / dynamic geometry (particles, text) with zero runtime allocations.
|
||||
VkBuffer dynamic_geom_buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory dynamic_geom_memory = VK_NULL_HANDLE;
|
||||
std::uint8_t* dynamic_geom_mapped = nullptr;
|
||||
VkDeviceSize dynamic_geom_capacity = 0, dynamic_geom_used = 0;
|
||||
std::deque<Geometry> dynamic_geometries;
|
||||
// Uploads larger than the ring get their own staging buffer, freed when the slot comes back.
|
||||
std::vector<std::pair<VkBuffer, VkDeviceMemory>> retired_buffers;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user