Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Bloom in GM-Too slow-Help?  (Read 953 times)

0 Members and 1 Guest are viewing this topic.

Giverny

Christ on Acid
Bloom in GM-Too slow-Help?
« on: May 04, 2008, 11:40:06 pm »
  • Bitte Scheiße
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1159
Code: [Select]
background_delete (bgDark);
bgDark = background_create_from_screen (0,0,256,192,false,true,false);//slow
 
// invert
draw_set_blend_mode_ext (bm_inv_dest_color, bm_zero);
draw_set_color (c_white);
draw_rectangle (0,0,256,192,false);
draw_set_blend_mode_ext (bm_inv_dest_color, bm_zero);
draw_set_color (c_white);
draw_rectangle (0,0,256,192,false);
background_delete (bgTwili);

bgTwili = background_create_from_screen (0,0,256,192,false,false,false);//slow
draw_set_blend_mode_ext (bm_one, bm_inv_src_color);
draw_set_blend_mode(bm_add)
draw_background_ext (bgDark,0,0,1,1,0,c_white,1);     
draw_set_blend_mode (bm_normal);

score = fps;
That is the step code for my objBloom.
The problem is, it makes my game run at 4 FPS, instead of 30. It gives me the effect I want, which is the saturated twilight realm effect off TP. Are there any ways I can make it process faster?

Thanks
~LynkW
Logged
THEGivernyPROJECT
~LynkW-Surrender Global
  • Surrender Global Forums
Re: Bloom in GM-Too slow-Help?
« Reply #1 on: May 04, 2008, 11:50:38 pm »
  • Fear my Blades
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 562
Use surfaces instead of backgrounds.
Logged

I've done it (sorta)!  Bloom Lighting in GameMaker, and 3D mode too!  Check out the awesome Screen Saver.
  • Kousou Games

Giverny

Christ on Acid
Re: Bloom in GM-Too slow-Help?
« Reply #2 on: May 04, 2008, 11:56:29 pm »
  • Bitte Scheiße
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 1159
I'll try.
(Ive never used surfaces before...)

EDIT:
Ok I'm stupid. How would I do so?

Thanks
 ~LynkW
« Last Edit: May 04, 2008, 11:58:52 pm by .LynkW »
Logged
THEGivernyPROJECT
~LynkW-Surrender Global
  • Surrender Global Forums
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.855 seconds with 40 queries.

anything