The current limit of 10 is limiting how many things I can stack over each other. I know that newer created items with the same ZIndex as an older one will overlap the older one, but I use ZIndex to ensure that, should this change, I am not affected.
Any chance it could be increased as my recent project requires that a number of GUI objects are overlapped?
An increase of just 2 would be good enough for me. Thanks
[quote] The current limit of 10 is limiting how many things I can stack over each other. I know that newer created items with the same ZIndex as an older one will overlap the older one, but I use ZIndex to ensure that, should this change, I am not affected.
Any chance it could be increased as my recent project requires that a number of GUI objects are overlapped?
An increase of just 2 would be good enough for me. Thanks [/quote]
I don’t really understand why there needs to be a limit.
No-mo ZIndex limit, I have exceeded it making an operating system out of gui, and it was annoying, I had to make my own ordered rendering system, that would draw the guis in overlapping order 0_o
I wish there wasn’t a limit. I mean it’s just a way of sorting the layers, right? Not like there’s actually a rendered layer for each incremented index. At least I hope not. For example, the z-index for HTML elements in CSS can really be any range of numbers and it works great.
You know how ROBLOX does things. They probably don’t just compare ZIndices - they probably use a for loop or something and make like a “render-in-this-order” list from 10 to 1. I mean yeah it is a bit faster when you know exactly what your max and mins are, but there’s got to be some way to do it without knowing the max and the min. Like crazyman32 said, “CSS can be … any range of numbers”
[quote] Doesn’t the ZIndex only come into effect AFTER the hierarchy layering?
Example: A parent object would always be behind its children.
I remember reading about it somewhere but was it actually implemented? [/quote]
No[/quote]
Something like it – you can pretty much make your own ZIndexes like 1.1, 1.2, 1.3, because the GUI objects pasted/inserted AFTER something on the same index will display above it. With this, you can pretty much have infinite indexes, even though it’s a pain.
Sorting is a really old problem in computing. Putting a limit on it make the algorithm run faster no matter what, so it’s probably an optimization to keep GUIs running lightning-quick.
[quote] Sorting is a really old problem in computing. Putting a limit on it make the algorithm run faster no matter what, so it’s probably an optimization to keep GUIs running lightning-quick.
#CollegeKnowledge [/quote]
Then let’s just increase the ZIndex limit to 50. I’d be surprised if someone would develop a GUI complex enough to use all 50.
[quote] Sorting is a really old problem in computing. Putting a limit on it make the algorithm run faster no matter what, so it’s probably an optimization to keep GUIs running lightning-quick.
#CollegeKnowledge [/quote]
Would still take at least nlog(n) (n is number of elements in list to sort) time to sort regardless of size, why would a limit change that, you’re only doing number comparisons?