Search results

  1. C

    GP2X Squidgesnes_0.37 Code Comments

    Damn =/ Ok.. I might continue with that anyway as I think its a public lib. Someone might like 'em =) Here's a few more... line 1369: minimal.c #ifdef NEW_DUALPAUSE inline void gp2x_dualcore_pause() { gp2x_memregs[0x0904>>1] &= 0xFFFE; } inline void gp2x_dualcore_unpause() {...
  2. C

    GP2X Squidgesnes_0.37 Code Comments

    :) hello, Been poking around squidgesnes again.. I think that minimal.c does all of the hardcore drawing/sound/joystick/etc for the gp2x? Would this work? Current Code: void gp2x_blitter_rect15(gp2x_rect *r) { int x, y; unsigned short *data=(unsigned short *)r->data...
  3. C

    GP2X Squidgesnes_0.37 Code Comments

    Hmmmm.. I think something much more productive would be to forget writting a new emulator, leave that to the snes9x team, and instead write "patchsets" focusing on the main bottleneck area's of the code. That would mean we could create a generic patch with the ARM ASM memcpy(), fixed-floating...
  4. C

    GP2X Squidgesnes_0.37 Code Comments

    I would be willing to help, but i have no real idea as to how it works. And im sure theres lots of others that would help. If it was to be done, it would more than likely need a "todo" list, or a project leader.. or both. If you could provide that im sure the work would be done much quicker. Mike
  5. C

    GP2X Squidgesnes_0.37 Code Comments

    Hi all, Ive read over the code, and its pretty basic algorithms and coding. Pretty hard to optimise. Someone mentioned rewriting the gpu. I would prolly say a complete start again, converting over the current code into GP2x optimized code is prolly the best way to go, and replacing as much as...
  6. C

    GP2X Squidgesnes_0.37 Code Comments

    Hi all, Looking in tile.cpp. it seems to have lots of functions like.. __inline void FLIPPED16_T (uint32 Offset,uint16 *Pixels,uint32 solid) { uint16 *Screen = (uint16 *) GFX.S + Offset; Screen += 7 * 320; #define FN(N) \ if (!(solid&(1<<(7-N)))) *Screen = *Pixels...
  7. C

    GP2X Squidgesnes_0.37 Code Comments

    If compare to 0 is faster.. if (--IPPU.FrameCount == 0) { IPPU.FrameCount = Memory.ROMFramesPerSecond; } =) Mike I think we should start a page on the wiki with coding tips, such as whats faster.
  8. C

    GP2X Squidgesnes_0.37 Code Comments

    lol!!!!!! ... ok read it ... It says... Is the remainder of IPPU.FrameCount / ROMFramesPerSecond = 0? ... so if ROMFramesPerSecond = 2... FrameCount can be any mult of 2.. so 2,4,6.... Now heres the thing... IF it = {2,4,6,...} then set FrameCount = 0!! so it will only EVER reach "2"...
  9. C

    GP2X Squidgesnes_0.37 Code Comments

    Hey dood, Empty? Hmmm.. Could be due to ARM arch? - If someone could send me a gmon.out file ill have a look, (unless its 0bytes "empty")... Daid: does the gp2x not have a FPU? - If so, give this a try change the (from memory, i think its in gp2xmain.c?)... #include "dsp1emu.c" to...
  10. C

    GP2X Squidgesnes_0.37 Code Comments

    Hi Squidge (or anyone), If you could compile the code with the -pg flag, it will create a file called "gmon.out" in the working directory at exit. E.g So you might want to add chdir("") where the program exits. Run the program as normal, play a game or two, then exit. (it will be slow...
  11. C

    GP2X Squidgesnes_0.37 Code Comments

    Hi all again, Looked at DSP1emu.c __inline double Atan(double x) { if ((x>=1) || (x<=1)) return (x/(1+0.28*x*x)); else return (PI/2 - Atan(1/x)); } atan() is only ever called once, and would prolly benefit being inline or even a lookup table like sin and cos. on the subject of the...
  12. C

    GP2X Squidgesnes_0.37 Code Comments

    I have noticed that the code is still very generic, i dont know if this is because its going to be re-entered into the snes9x code.. or just for ease but could be much better for an overall improvement. Changing the sin and cos in c4.cpp to a look up table i believe would improve the mode7...
  13. C

    GP2X Squidgesnes_0.37 Code Comments

    Hi all, Was reading squidgesnes_0.37mmu source code. Just thought id post a thread here so people can read my comments and maybe see if they help improve? Math improvements: void drawRect (unsigned short *vram, int x, int y, int w, int h) { for (int y1 = y; y1 < y+h; y1 ++) for (int x1...
  14. C

    GP2X Ads, Rvct, Keil And Other Compilers

    Hi all, I've used TCC (TinyCC) and love it. Unfortunatly, it does not support all of GCC's extentions but compiles ISOC99 standard code. It has a sister compiler called "armcc", specific to ARM arch. Might be worth a try? Otherwise check out the GCC ARM optimization options...
Back
Top