Logging game events to text file
#24
It helps performance (speed) of your code. Having the code handler equipped already slows down the CPU quite a bit, and having "slow" codes on top of it will make it worse. Will this make any "real-time" difference? No, unless we are talking about having multiple codes that all do something intense such as NAND/file editing.

Providing the wrong branch hint (+ when you're not suppose to on forward branches and - when you're not suppose to on backwards branches) will do a lot worse though than leaving the branch hint as default (less likely). When you omit a branch hint, it's the same as applying (-) for forward branches and (+) for backwards branches.

To give you an idea about what speeds we are talking about. A tick/clock in Broadway under normal conditions is a little over 16 nanoseconds iirc. A missed branch prediction (if said branch is not in the Branch History Table or Branch Target Cache), can cause around.... idk... 10 extra clocks?? (this varies A TON on what code is present and Its been a minute since I've done any instruction timing stuff). So 160+ nanoseconds, lol.
Reply


Messages In This Thread
Logging game events to text file - by seanmcnally - 03-02-2024, 09:56 PM
RE: Logging game events to text file - by Vega - 03-04-2024, 01:38 AM
RE: Logging game events to text file - by Vega - 03-04-2024, 09:37 PM
RE: Logging game events to text file - by Vega - 03-07-2024, 01:02 AM
RE: Logging game events to text file - by Vega - 03-08-2024, 12:25 AM
RE: Logging game events to text file - by Vega - 03-08-2024, 06:44 PM
RE: Logging game events to text file - by Vega - 03-12-2024, 09:13 PM
RE: Logging game events to text file - by Vega - 03-13-2024, 11:36 PM
RE: Logging game events to text file - by Vega - 03-14-2024, 06:28 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 02:23 AM
RE: Logging game events to text file - by Vega - 03-16-2024, 04:54 PM
RE: Logging game events to text file - by Vega - 03-16-2024, 11:13 PM
RE: Logging game events to text file - by Vega - 03-18-2024, 05:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)