1) Why does a program(i.e. Internet Browser) gets loaded into the RAM(I think it is called lv1 cache from the CPU correct me if I am wrong) from hard disk? Why not just access it from the hard disk since that is where the program originated from after installation?
2) Does a computer instruction that takes longer to execute use more RAM?
3) If an instruction needs to create a stack frame does it use RAM and when the stack frame gets popped off, is that when RAM gets released?
4) Since RAM does not seem to be an issue (I assume even people with a tight budget use Windows 7 or a Mac, why is there a need to optimize a function when there is a bottleneck?
5) Are all bottlenecks linked to consuming too much RAM or is it much more than that? I have not experienced a bottleneck (maybe it is because I never used a profiler before or maybe I just know how to write computer instruction that supposedly used less RAM? if that makes any sense)
7) How much CPU usage should a video game generally used up? I programmed a 2D RPG game and it uses up 15-17% CPU usage and 100 MB of RAM based on the data I am seeing from my Macbook Air's Activity Monitor.
Edit: I hate anonymous down votes...I just want to learn on a deep level
I read Objective C was built on the C programming language. So my initial thought was maybe I should learn C first before learning Objective C so I don't wind up shooting myself in the foot. Or worse, blow my whole leg off using the language.
Originally i tried learning game programming in Swift(thinking I can handle it since I made games using Java). But this does not seem to be the case. There is so much mental overhead and quirks in terms of how the code is presented. It is vastly different from Java.
On a side note, does learning C making C++ more understandable?
Charlie Hauser at Riot Games states "Real-time games move very small amounts of data in milliseconds".
My take: I thought real time games had to update a lot of data in that short amount of time. Every user running the client needs their moving character to be updated(their position, their animation frame, animation texture changes ) same applies to their character projectiles, game logic etc.
Seems like a whole lot of data being passed through the traffic on their network, right?
On a side note: what makes Youtube and Netflix a buffered application?