native renderer: game world at MT_RENDER_SCALE (0.75 on Android), MSAA default 2

Draws recorded inside CPythonApplication::RenderGame are marked Render3DDraw::scene and
drawn by a scene pass compatible with pass_ into a reduced-resolution image, composited
where RenderGame drew; the UI stays full resolution. --render-scale / MT_RENDER_SCALE,
desktop default 1.0 (unchanged path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-30 11:28:05 +09:00
co-authored by Claude Opus 5.5
parent b7c215ee42
commit 44a020f01e
12 changed files with 307 additions and 11 deletions
+4
View File
@@ -120,6 +120,9 @@ VulkanWindow::~VulkanWindow() {
for (auto& entry : textures_) release_texture(entry.second);
for (auto& entry : render_targets_) release_render_target(entry.second);
if (offscreen_pass_) vkDestroyRenderPass(device_, offscreen_pass_, nullptr);
destroy_scene_target();
release_geometry(scene_quad_);
if (scene_pass_) vkDestroyRenderPass(device_, scene_pass_, nullptr);
release_texture(fallback_texture_);
for (auto& entry : pipelines_) vkDestroyPipeline(device_, entry.second, nullptr);
if (vertex_module_) vkDestroyShaderModule(device_, vertex_module_, nullptr);
@@ -229,6 +232,7 @@ void print_summary(const VulkanWindow& renderer, int completed, double wall_ms,
};
std::cout << "device=" << renderer.device_name()
<< " present_mode=" << renderer.present_mode_name() << " msaa=" << renderer.msaa_samples()
<< " render_scale=" << renderer.render_scale()
<< " frames=" << completed
<< " draws=" << renderer.draw_count()
<< " skinned_draws=" << renderer.skinned_draw_count()