Jump to content

  • Log In with Google      Sign In   
  • Create Account


MoHammaD_93

Member Since 01 Jul 2009
Offline Last Active Sep 20 2012 08:39 AM
-----

Posts I've Made

In Topic: CPU to GPU data transfer speed

20 September 2012 - 08:29 AM

Thank you guys, it's a positive answer which I wished, but...


Why does this documentation say something that looks contrary: http://www.opengl.org/wiki/Performance#CPU_and_Bus_limits

Bus bandwidth: There is a finite limit to the rate at which data can be sent from the CPU to the graphics card. If you require too much data to describe what you have to draw - then you may be unable to keep the graphics card busy simply because you can't get it the data it needs.


In Topic: Fullscreen mode not working with signle buffer

25 August 2012 - 08:21 PM

The code looks fine. It is probably some system issue. BTW, what OS, gpu are you using. Do you have the latest graphics drivers?


Yes, thank you. Your view is basically right, I didn't change anything on my computer though.

I tested the code on another PC and it went the way I want.

I'll work on getting my PC on the right path.

Thanks

In Topic: Fullscreen mode not working with signle buffer

25 August 2012 - 05:18 PM

!!people?? I need your help.

In Topic: Fullscreen mode not working with signle buffer

24 August 2012 - 03:31 PM


even though I used delay functions after and before glutSwapBuffers.


... this statement makes me very uneasy. It makes me suspect you are doing something wrong; like, say, putting some kind of sleep() or busy-wait before and after swapping. Which probably isn't what you really want to do.


well, of course that's not what I want to do. but it's somehow for error-investigation sake, that is, I wanted to make sure that the drawing commands are complete.



Here's my simple program:

#include <GL/glew.h>
#include <GL/freeglut.h>
#pragma comment(lib, "glew32.lib")
#include <iostream>
using namespace std;

void display(void);
void reshape(int w, int h);

int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(1366, 768);
glutCreateWindow("Tests");
glutFullScreen();

if( glewInit() != GLEW_OK){
  cout << "Failed to initilize GLEW" << endl;
  return -1;
}

glutIdleFunc(display);
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutMainLoop();
return 0;
}
void display(void)
{
GLclampf c = glutGet(GLUT_ELAPSED_TIME)/300.0;
c = fmodf(c, 1.0f);
glClearColor(c, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
//glutSwapBuffers();
}

void reshape(int w, int h)
{
glViewport(0, 0, w, h);
}

PARTNERS