Conversation Between jiangzhengwenjzw and FBI
Showing Visitor Messages 1 to 15 of 71
  1. jiangzhengwenjzw
    June 24th, 2016 5:39 PM
    Oh, that's a pity. I've found that many amazing features (like lightning of red/blue orb in EM and flashing charizard in FR titlescreen) are done by those kind of things and the related functions, but they're really not easy to analyze. :/
  2. FBI
    June 24th, 2016 11:33 AM
    They are basically unnamed. I asked him about these earlier, he described them as unknown or unnamed structs.
  3. jiangzhengwenjzw
    June 24th, 2016 8:35 AM
    Hello, I'm quite confused about the dpXX in knizz's DB. Would you mind explaining something basic about it to me? Thanks!
  4. jiangzhengwenjzw
    April 10th, 2016 6:11 AM
  5. FBI
    April 10th, 2016 5:39 AM
    That's one way, but you should really avoid doing so. Flush the uncompressed data into a buffer, use gpu_pal_apply and use DMA to transfer the data to VRAM during a vblank. That's all you need to do. If you want examples, check how FireRed does the PC box's BG graphics.
  6. jiangzhengwenjzw
    April 10th, 2016 1:18 AM
    Do you have any idea? Or should I update the tilemap within the vblank_handler?
  7. jiangzhengwenjzw
    April 7th, 2016 6:33 PM
    Still not working. I've tried it in ASM, to read the register in lcd_io_buffer.
    See it:
  8. FBI
    April 7th, 2016 8:16 AM
    Generally, you should use an interrupt. However, this is fine too dependingly:
  9. jiangzhengwenjzw
    April 7th, 2016 7:18 AM
    yes, i will ask there the next time.
    I surely use gpu_pal_apply, but I don't know how to wait for the vblank. Should I add a task to check the REG_DISPSTAT? (I know there's a "buffer" for this I/O register, but that's the same)
  10. FBI
    April 7th, 2016 6:53 AM
    No, I mean wait for the vblank before drawing to the BG. If you use gpu_pal_apply, it should write during the next vblank too. This idea of writing during vblanks is called vsyncing.

    Also Jiang, I appreciate you trying to learn and stuff, but can you ask your questions in help threads? I'd like for other people who may have similar questions to you be able to see my answers to these questions. Often times I've answered your questions privately with someone else. It'd help to spread the knowledge
  11. jiangzhengwenjzw
    April 7th, 2016 6:24 AM
    what do you mean or what should i do?

    wait...... is it something with the gpu_sync_bg_show?
  12. FBI
    April 7th, 2016 5:11 AM
    yes, vysnc
  13. jiangzhengwenjzw
    April 6th, 2016 11:18 PM
    Hi, a question.
    To show an image in BG0, I want to write the tiles and tilemap into VRAM and pal into the pal buffer.
    However, this way has an obvious problem that the BG map will be drawn almost instantly, but the pal won't be copied to the PALETTE RAM instantly. Therefore, there will be a short period of time within which the image will be shown but the palette won't be correct. Do you have any idea of this kind of issue?
  14. jiangzhengwenjzw
    April 1st, 2016 7:51 PM
    Yes, its smartness is beyond my imagination. I expected an error when the type of function pointer is not compatible with the declaration but there're only some warnings.
  15. FBI
    April 1st, 2016 7:43 PM
    Ah, thanks for confirming. I had a feeling the compiler was smart enough to handle that, but wasn't 100% sure :)

All times are GMT -8. The time now is 7:17 PM.