Editing User talk:Kozarovv

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
==psfour2pstwo==
==psfour2pstwo==


====vu0====
====idle detect====
For JAK emu. Todo: Exec from VIF0 seems to always run program for 0x7FFFFFFF cycles...
 
void __fastcall Vu0MicroExec()
* --detect-idle-vif
{
* --detect-idle-ee
  run_vu0(vu0_functions_ptr, 256LL, 0LL);
* --detect-idle-iop
                                                // run vu for 256 cycles.
* --detect-idle-intc
                                                // This kill whole sync idea. We have 256 cycles run already on first run.
* --detect-idle-chcr
                                                // Games like SST/ARR/TM:HEAD-ON are alredy broken before we even started.
 
====other====
  if (is_vu0_running())                        // if still running (no ebit, no mbit)
 
  {
* --force-point-sampling
    v0 = ee_sched_stru;
* Project Snowblind US mipmap offset 0019506C  bc1f    loc_19508C
    v1 = 0LL;
 
    v2 = *(ee_core_regs_base + 0x378) - *(ee_core_regs_base + 0x370) + 512LL;
====vu====
                                                // passed cycles + 512
 
                                                // terrible idea, we are falling behind ee here.
Looks like VU sync always(?), not like ps2.
                                                // There is usually no point to run behind ee if we failed to do this at start.
                                                // This break games like Ratchet/Rayman.
    sched_Vu0MicroExec.delta = v2;
    if ( ee_sched_stru )
    {
      while ( 1 )
      {
        v3 = v0;
        if ( v0[2] >= v2 )                      // if delta from scheduler higher than from v0
          break;
        v0 = *v0;
        v1 = v3;
        if ( !*v3 )                             // schedule next run...


====todo====
====todo====
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)