- Joined
- Jun 27, 2013
- Messages
- 896
- Reaction score
- 166
- No separate screenshot directory
This is just messy, and possibly even dangerous - if you accidentally select non-screenshots if you're on a deleting spree... - Naming/numbering scheme
- Numbering screenshots is never a good idea. If I delete random screenshots, the next shots will end up out of chronological order.
- Also, I'm a packrat, and I've been known to keep literally thousands of screenshots, so four digits may not be enough.
- Numbering scheme, part two
The next number in sequence is determined by brute force, starting with ./starmade-screenshot-0000.png and checking whether a file with that name already exists, if so, increment by one, every time a screenshot is made. Now much of this will happen in cache, but it's still a comparatively expensive operation that doesn't scale well.