Thanks, TapamN

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
|darc|
DCEmu Webmaster
DCEmu Webmaster
Posts: 16378
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Mar 14, 2001 6:00 pm
Location: New Orleans, LA
Has thanked: 111 times
Been thanked: 91 times
Contact:

Thanks, TapamN

Post by |darc| »

https://github.com/KallistiOS/KallistiO ... /sq.h#L161

Code: Select all

/** \brief   Copy a block of memory to VRAM
    \ingroup store_queues
    \author  TapamN

    This function is similar to sq_cpy(), but it has been
    optimized for writing to a destination residing within VRAM.

    \note
    TapamN has reported over a 2x speedup versus the regular
    sq_cpy() when using this function to write to VRAM.

    \warning
    This function cannot be used at the same time as a PVR DMA transfer.

    The dest pointer must be at least 32-byte aligned and reside 
    in video memory, the src pointer must be at least 8-byte aligned, 
    and n must be a multiple of 32.

    \param  dest            The address to copy to (32-byte aligned).
    \param  src             The address to copy from (32-bit (8-byte) aligned).
    \param  n               The number of bytes to copy (multiple of 32).
    \return                 The original value of dest.

    \sa sq_cpy()
*/
void * sq_cpy_pvr(void *dest, const void *src, int n);


EDIT: Also thanks to BB Hood who put this whole PR together.
These users thanked the author |darc| for the post (total 3):
BB HoodGyroVorbisIan Robinson
It's thinking...
User avatar
GyroVorbis
Elysian Shadows Developer
Elysian Shadows Developer
Posts: 1874
Joined: Mon Mar 22, 2004 4:55 pm
Location: #%^&*!!!11one Super Sonic
Has thanked: 81 times
Been thanked: 64 times
Contact:

Re: Thanks, TapamN

Post by GyroVorbis »

:mrgreen: Yeah, thanks so much for even sharing that one with the community. Feel free to let us know if you have any other suggestions or complaints.

I'm slowly going back an finding old threads of yours with useful tidbits on how to improve KOS.
Post Reply