Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Have you tried using a pre-calculated table? You can make it start at 2 and run up to whatever the highest size would be then you'd simply only have to run through the array until you find a size that fits.
Jason McMillen Pascal Game Development Co-Founder
Forum Rules
Bookmarks