Skip to content
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

Port DDA's optimizations to cata_tiles::find_tile_looks_like + Skip and report duplicate tiles in tileset #516

Merged
merged 2 commits into from
May 15, 2021

Conversation

olanti-p
Copy link
Contributor

Purpose of change

Increase FPS
Expand on tileset correctness checks

Describe the solution

Port CleverRaven#44917.
That PR changed handling of tiles with same ids (while they used to be completely overwritten by the last such tile, after the change they somehow cause CleverRaven#48819). I don't quite get what's happening there, so as a workaround implemented a check for duplicate ids within a tileset (it seems to have fixed the issue).

Testing

Visually checked (with UDP and ChestHole16) tiles for:

  • monsters
  • corpses
  • vehicle parts & their looks_like
  • terrain (including trees in all 4 seasons)
  • furniture
  • items
  • clothing overlays

FPS improvement - UDP, in a city, zoomed out:
image
Same place, RetroDays, zoomed out:
image

@Coolthulhu Coolthulhu merged commit 3f646c4 into cataclysmbnteam:upload May 15, 2021
@olanti-p
Copy link
Contributor Author

implemented a check for duplicate ids within a tileset (it seems to have fixed the issue)

Drat, it also broke sprite replacement mods. Will have to think of another solution.

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