Arkiras method works perfect. Here is a video of the test:
You will notice on very low values. remember the value is a %, not the actual resolution
so changes are like exponential in the lowest end.
Also you will still have some antialiasing effect on the final results: