Skip to content

Fixed the issue of not displaying when rendering multiple tilemaps #18695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025

Conversation

qiuguohua
Copy link
Contributor

Re: #

Changelog

https://forum.cocos.org/t/topic/167470/11


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

@qiuguohua qiuguohua requested a review from star-e May 8, 2025 01:56
Copy link

github-actions bot commented May 8, 2025

Code Size Check Report

Wechat (WASM) Before After Diff
2D Empty (legacy pipeline) 1005779 bytes 1005779 bytes ✅ 0 bytes
2D All (legacy pipeline) 2669491 bytes 2669410 bytes 👍 -81 bytes
2D All (new pipeline) 2757998 bytes 2757917 bytes 👍 -81 bytes
(2D + 3D) All 10013882 bytes 10013801 bytes 👍 -81 bytes
Web (WASM + ASMJS) Before After Diff
(2D + 3D) All 16831071 bytes 16830990 bytes 👍 -81 bytes

Interface Check Report

This pull request does not change any public interfaces !

@star-e
Copy link
Contributor

star-e commented May 8, 2025

@cocos-robot run test cases

Copy link

github-actions bot commented May 8, 2025

@qiuguohua, Please check the result of run test cases:

Task Details

Copy link

github-actions bot commented May 8, 2025

@qiuguohua, Please check the result of run test cases:

Task Details

@star-e star-e merged commit d5053e9 into cocos:v3.8.7 May 8, 2025
15 checks passed
@xiehande
Copy link

xiehande commented May 9, 2025

感觉大佬回复。不知道这个测试是做什么。我进行研究是发现了tiledmap上如果是图块集和格子相同不会闪烁错乱。如果不同则会闪错。我可以把demo发你看看。可以把地图的图层闪掉。用一个新的来,试下就知道了。可以使用cocos自带的原生模拟器也可以跑出来的。

@xiehande
Copy link

xiehande commented May 9, 2025

大小太大没通过。你可以试试这个楼主的demo也行。把图集块的大小强行改成和格子大小一致。应该也不闪了。比如我的格子是5050.
image
这个大小是128.有问题。
image
这个格子是50
50.渲染没问题

@xiehande
Copy link

xiehande commented May 9, 2025

cocos_tiledmap_test.zip

@xiehande
Copy link

xiehande commented May 9, 2025

我提交了一个demo。方便大佬看看。地图里面的,1001是没有问题的,1002的是有问题的。你看下地图的格子就知道了。

@xiehande
Copy link

xiehande commented May 9, 2025

经过大量测试。发现tiledmap只要有多余2层时候,就会闪烁。这个只能靠你们尽快修复下了。跟图集块大小还没太大关系。如果只有一层的情况下。随便丢不同的格子的大小都不会闪。

@xiehande
Copy link

xiehande commented May 9, 2025

image
混用不同格子大小的图集块就会出现渲染闪烁

@xiehande
Copy link

xiehande commented May 9, 2025

222.zip 这是测试demo。非常简单,只有2个图集块即可重现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants