Changeset 1579


Ignore:
Timestamp:
Jul 5, 2012, 3:57:57 PM (8 years ago)
Author:
sam
Message:

ps3: fix CPU and stack size performance issues on the PS3.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/ps3/threadbase.h

    r1164 r1579  
    127127    ThreadBase(void *(*fn)(void *), void *data)
    128128    {
     129        size_t stack_size = 128 * 1024;
     130        char const *thread_name = "new thread";
     131
    129132        /* FIXME: choose priority more wisely */
    130133        sys_ppu_thread_create(&m_thread, (void (*)(uint64_t))fn,
    131                               (uint64_t)data, 1000, 0, 0, "new thread");
     134                              (uint64_t)data, 1000, stack_size, 0, thread_name);
    132135    }
    133136
  • trunk/src/ticker.cpp

    r1531 r1579  
    315315#if defined __CELLOS_LV2__
    316316    /* FIXME: temporary hack to avoid crashes */
    317     for (;;);
     317    Timer t;
     318    for (;;)
     319    {
     320        t.Get();
     321        t.Wait(0.001f);
     322    }
    318323#endif
    319324    return NULL;
Note: See TracChangeset for help on using the changeset viewer.