Conversation Between jiangzhengwenjzw and FBI
Showing Visitor Messages 1 to 15 of 71
  1. jiangzhengwenjzw
    June 24th, 2016 5:39 PM
    jiangzhengwenjzw
    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
    FBI
    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
    jiangzhengwenjzw
    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
    jiangzhengwenjzw
    Great.
  5. FBI
    April 10th, 2016 5:39 AM
    FBI
    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
    jiangzhengwenjzw
    Do you have any idea? Or should I update the tilemap within the vblank_handler?
  7. jiangzhengwenjzw
    April 7th, 2016 6:33 PM
    jiangzhengwenjzw
    Still not working. I've tried it in ASM, to read the register in lcd_io_buffer.
    See it: http://pastebin.com/ih5jX1ni
  8. FBI
    April 7th, 2016 8:16 AM
    FBI
    Generally, you should use an interrupt. However, this is fine too dependingly:
    http://www.coranac.com/tonc/text/video.htm#sec-vsync1
  9. jiangzhengwenjzw
    April 7th, 2016 7:18 AM
    jiangzhengwenjzw
    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
    FBI
    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
    jiangzhengwenjzw
    what do you mean or what should i do?

    EDIT:
    wait...... is it something with the gpu_sync_bg_show?
  12. FBI
    April 7th, 2016 5:11 AM
    FBI
    yes, vysnc
  13. jiangzhengwenjzw
    April 6th, 2016 11:18 PM
    jiangzhengwenjzw
    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
    jiangzhengwenjzw
    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
    FBI
    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.