Author Topic: C++/OpenGL programming help  (Read 3078 times)

Offline MajorSlime

  • Self-Proclaimed ACS Grandmaster
  • Multiplayer Team Leader
  • Chex Master
  • *****
  • Thank You
  • -Given: 18
  • -Receive: 29
  • Posts: 4308
  • If life gives you lemons, give its lemons back!
    • Chex Quest: Reflections
C++/OpenGL programming help
« on: March 25, 2012, 01:27:34 PM »
Hey all, i've got a program I'm writing with C++ and OpenGL. It currently displays a 10x10 array of cubes, with a little bit of a function to make it so it only displays the showing sides if blocks are right next to each other. Now, currently, it doesn't quite render right, but I think that's something I can fix. My problem, however, is an extremely low FPS. Almost anything I try to program ends up with something like 1 or possibly .5 FPS. I have no idea whats causing it :(

Do any of you want to take a look? (note that this code IS planned to be part of a commercial game eventually, so no copying or distributing or anything like that :P I'll send you a download link via PM if you want to look)
Shh!  I'm taking a break from reality.

John 3:16
For God so loved the world, that he gave his only son, that whoever believes in him shall not perish, but have eternal life!

Give God your life; You won't regret it!

Offline ChexCommander

  • #1 Bro President
  • Multiplayer Team Leader
  • Snot Lord
  • *****
  • Thank You
  • -Given: 70
  • -Receive: 19
  • Posts: 10519
  • Stay classy, cats...stay classy
Re: C++/OpenGL programming help
« Reply #1 on: March 25, 2012, 02:05:58 PM »
Hey all, i've got a program I'm writing with C++ and OpenGL. It currently displays a 10x10 array of cubes, with a little bit of a function to make it so it only displays the showing sides if blocks are right next to each other. Now, currently, it doesn't quite render right, but I think that's something I can fix. My problem, however, is an extremely low FPS. Almost anything I try to program ends up with something like 1 or possibly .5 FPS. I have no idea whats causing it :(

Do any of you want to take a look? (note that this code IS planned to be part of a commercial game eventually, so no copying or distributing or anything like that :P I'll send you a download link via PM if you want to look)

I'll take a look, but I'm not much good with C++ yet so I can't guarantee I'll really notice anything. I like seeing other people's code, though.
"I don't cook, either. Not as long as they still deliver pizza." -Tiger Woods

Offline Atariangamer

  • Dormant User
  • Snot Lord
  • *****
  • Thank You
  • -Given: 31
  • -Receive: 55
  • Posts: 11809
  • Keelah se'lai
Re: C++/OpenGL programming help
« Reply #2 on: March 25, 2012, 02:45:49 PM »
Likewise. I'm 'decent' at C++, but OpenGL? IDK.
Don't remember me as I was...I was an idiot.

Offline MajorSlime

  • Self-Proclaimed ACS Grandmaster
  • Multiplayer Team Leader
  • Chex Master
  • *****
  • Thank You
  • -Given: 18
  • -Receive: 29
  • Posts: 4308
  • If life gives you lemons, give its lemons back!
    • Chex Quest: Reflections
Re: C++/OpenGL programming help
« Reply #3 on: April 02, 2012, 07:08:30 PM »
So, you guys taken a look at it yet?
Shh!  I'm taking a break from reality.

John 3:16
For God so loved the world, that he gave his only son, that whoever believes in him shall not perish, but have eternal life!

Give God your life; You won't regret it!

Offline Atariangamer

  • Dormant User
  • Snot Lord
  • *****
  • Thank You
  • -Given: 31
  • -Receive: 55
  • Posts: 11809
  • Keelah se'lai
Re: C++/OpenGL programming help
« Reply #4 on: April 02, 2012, 09:13:00 PM »
I did, and I thought I had replied. O_o

I took a bit of a look at it, started getting deeper into it, and then just stopped. This is way more of an OpenGL question, and I barely understood a thing. Sadly.

I deleted it, if its any consolation to you. But I've got no ideas, honestly -_-;
Don't remember me as I was...I was an idiot.

Offline MajorSlime

  • Self-Proclaimed ACS Grandmaster
  • Multiplayer Team Leader
  • Chex Master
  • *****
  • Thank You
  • -Given: 18
  • -Receive: 29
  • Posts: 4308
  • If life gives you lemons, give its lemons back!
    • Chex Quest: Reflections
Re: C++/OpenGL programming help
« Reply #5 on: April 02, 2012, 10:18:11 PM »
k

I wonder if BC might know anything...
Shh!  I'm taking a break from reality.

John 3:16
For God so loved the world, that he gave his only son, that whoever believes in him shall not perish, but have eternal life!

Give God your life; You won't regret it!

Offline Atariangamer

  • Dormant User
  • Snot Lord
  • *****
  • Thank You
  • -Given: 31
  • -Receive: 55
  • Posts: 11809
  • Keelah se'lai
Re: C++/OpenGL programming help
« Reply #6 on: April 02, 2012, 10:36:03 PM »
Nothing against her, but she works more on servers and databases, not stuff like this. Who knows, she might, but don't hold out too much hope.


...if you can find her...
Don't remember me as I was...I was an idiot.

Offline MajorSlime

  • Self-Proclaimed ACS Grandmaster
  • Multiplayer Team Leader
  • Chex Master
  • *****
  • Thank You
  • -Given: 18
  • -Receive: 29
  • Posts: 4308
  • If life gives you lemons, give its lemons back!
    • Chex Quest: Reflections
Re: C++/OpenGL programming help
« Reply #7 on: April 02, 2012, 10:56:38 PM »
I just threw the idea out because I remember her picking apart my XCTD(Xbox Controller to Desktop) program XD
Shh!  I'm taking a break from reality.

John 3:16
For God so loved the world, that he gave his only son, that whoever believes in him shall not perish, but have eternal life!

Give God your life; You won't regret it!

Offline ChexCommander

  • #1 Bro President
  • Multiplayer Team Leader
  • Snot Lord
  • *****
  • Thank You
  • -Given: 70
  • -Receive: 19
  • Posts: 10519
  • Stay classy, cats...stay classy
Re: C++/OpenGL programming help
« Reply #8 on: April 03, 2012, 06:24:14 PM »
Yeah...I understand most of the code but the whole SDK/OpenGL has me stumped. Sorry bro
"I don't cook, either. Not as long as they still deliver pizza." -Tiger Woods

Offline MajorSlime

  • Self-Proclaimed ACS Grandmaster
  • Multiplayer Team Leader
  • Chex Master
  • *****
  • Thank You
  • -Given: 18
  • -Receive: 29
  • Posts: 4308
  • If life gives you lemons, give its lemons back!
    • Chex Quest: Reflections
Re: C++/OpenGL programming help
« Reply #9 on: April 16, 2012, 11:38:21 PM »
Oh, I figured this out. If I remember right, I was rendering too many things >_< Or something like that... I don't really remember what it was. I missed those latest replies and only saw them now XD
Shh!  I'm taking a break from reality.

John 3:16
For God so loved the world, that he gave his only son, that whoever believes in him shall not perish, but have eternal life!

Give God your life; You won't regret it!

 


Web Hosting by InMotion Hosting