Performance of promity prompts

If you dont know whether to use proximity prompts for collecting game, here’s the performance stats with 8192 proximity prompts

  • it’s tested in studio (so it might be a bit more performant in a game)
  • my cpu is intel 12400
  • gpu 3060
  • 32 gb ram

with all prompts disabled i had 240 fps avg

with all prompts enabled i had:
140-160 fps avg (8192 prompts)
190-200 fps avg (4096 prompts)
210-230 fps avg (2048 prompts)
230-240 fps avg (1024 prompts)

(if you want to toggle them, right click in explorer → hierarchy → select children)

^ on the phones the impact is maybe even larger

place where you can test for yourself:
proximity-prompt-test.rbxl (88.1 KB)

2 Likes

I don’t think the amount is really an issue. There are quite a few known optimizations for this kind of algorithm. especially things like the MaxActivationDistance property and others that give us some clues.

As long as there’s enough spacing between them, not too close together, there shouldn’t be any problems.

i think i tested with proximity prompts far and close, it’s the data didnt change much apparently.

1 Like