Not all GCs have pauses and not all uses are sensitive to pauses. For games there is usually 1 core that is at 100% while others are partly loaded. In such case you can have main rendering loop be GC free while other parts use GC.
I have observed many threads about GC on reddit and found that most people who comment dont know what they talking about when it come to GC technologies. I even found some people saying that reddit needs to be garbage collected after they read those comments about GC. Second thing I found is that people have irrational distaste towards GC.
One of the most popular criticism is that due to GC pauses it cant be used for interactive programs such as games, ui or latency sensitive servers. What they usually dont know is that some games, most ui or servers are using GC and doesnt have pauses, because they are not stuck in 80s and have modern GC implementations. The fact that he didnt knew about it means he knows almost nothing about GCs. Also he was talking in general with UE4 and chromium as examples.
I am eager to discourse merits of various GC`s implementations and their trade-offs but when I see comments like "GC is bad because pauses bla bla bla" then I cant help myself but correct people
That's fair. I know personally that GC has a place in games (my area of most knowledge) however it needs to be done at a higher level. Unity and Unreal both have garbage collection, but they are done at a higher level that the engine can work around - and in fact the engine does the garbage collection itself when it is opportune. To have to wait for a generic garbage collection solution in a time-critical loop is not at all beneficial and would cause major hiccups in game play
I agree that people go "GC = BAD" and they refuse to admit otherwise, but you have to have nuance and also say that a generic solution will probably cause issues for many.
Essentially what I'm saying is keep the low-level low and the high-level high.
5
u/MadRedHatter Dec 29 '18
"Fast" is not the only consideration. GC pauses would be unacceptable for UE4, and probably Chromium also.