< >
Hello, guest! Please log in or register.

The PokéCommunity

Go Back     The PokéCommunity Forums > Members List jiangzhengwenjzw's Profile

Notices

jiangzhengwenjzw jiangzhengwenjzw is offline

You can (not) redo.

Visitor Messages

Showing Visitor Messages 1 to 15 of 64
  1. FBI
    3 Weeks Ago 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.
  2. FBI
    4 Weeks Ago 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
  3. FBI
    4 Weeks Ago 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
  4. FBI
    4 Weeks Ago 5:11 AM
    FBI
    yes, vysnc
  5. FBI
    4 Weeks Ago 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 :)
  6. FBI
    4 Weeks Ago 6:43 PM
    FBI
    I'm not 100% sure about that example with rand actually.

    I know you'd need to define the function header for "rand" inorder to be able to even use it as a parameter, but in general adding +1 in BPRE.ld should not affect functionality (I'm not 100% sure, just pretty sure).

    You can for example do this:

    void task_example(u8 task_id) {
    return;
    }

    void set_task() {
    task_add(task_example, 0x1);
    task_add(task_example + 1, 0x1);
    }

    I think both of those task_add will work. Try to compile it and check!
  7. FBI
    April 1st, 2016 8:53 AM
    FBI
    Don't add +1 in C.
  8. FBI
    March 26th, 2016 8:32 AM
    FBI
    Modify the make file? I don't know, why can't you use the Python files? Just download python :o
  9. FBI
    March 26th, 2016 7:32 AM
    FBI
    I have no idea. I'm able to compile this source code http://imgur.com/AHT42gw
  10. FBI
    March 26th, 2016 7:20 AM
    FBI
    you needed to do "extern void func_2();"

    Don't put the void inside the brackets. They mean different things.
  11. FBI
    March 26th, 2016 5:31 AM
    FBI
    yeah this works. Try it
  12. FBI
    March 26th, 2016 5:17 AM
    FBI
    extern void func_2();

    void func_1() { func_2();}

    ---

    void func_2() {}
  13. FBI
    March 26th, 2016 5:03 AM
    FBI
    extern does work in devkitarm. Devkitarm is based off of GCC.
    extern the entire function header.
  14. FBI
    March 26th, 2016 4:23 AM
    FBI
    Extern is how you would do it.
    Make sure you have the extern statement in the file which uses the functions, and not in the original file. Also what's wrong with including them?
  15. FBI
    March 24th, 2016 7:57 AM
    FBI
    just copy it over, and change the "<>" to just normal double quotes :)

About Me

  • About jiangzhengwenjzw
    Gender
    Male ♂

Statistics

Total Posts
Activity by Forum
Visitor Messages
Blog
General Information
  • Last Activity: 6 Hours Ago 7:45 AM
  • Join Date: September 21st, 2012
  • Referrals: 0

Friends

Showing Friends 1 to 1 of 1

  All times are GMT -8. The time now is 2:12 PM.


Contact Us Archive Privacy Statement Terms of Service Top