AdNauseam icon indicating copy to clipboard operation
AdNauseam copied to clipboard

AdVault with too many ads not rendering - "tab unresponsive"

Open mneunomne opened this issue 1 year ago • 2 comments

Too many ads on my vault are failing to render, it makes the tab timeout.

It seems to crash at around 3000 ads being displayed at the same time.

Image of the vault (not all ads being displayed):

Screenshot 2024-01-15 at 00 07 43

mneunomne avatar Jan 14 '24 23:01 mneunomne

A couple of options here, long and short term, respectively:

  1. rewrite the D3 code to be cleaner/more efficient (it is quite a mess right now)
  2. restrict the number of ads users can view at one time

dhowe avatar Jan 16 '24 06:01 dhowe

I ran a profiler on the process while it was working on rendering the ad vault. We spend most of our time doing rectangle packing, specifically checking if one rectangle contains another in order to merge them.

ashkitten avatar Jan 31 '24 17:01 ashkitten