



PCA1/2 = My pc.
PCB1/2 = Another pc.
600 frames measuring milliseconds per frame.
I tried a bunch of stuff. Messing with the gpu settings, windows compatibility, process killing...
The only change was with compatibility, where I got the skipping to almost nothing, in exchange for a nice tearing.
I'm out of ideas. Heres some pseudo for my map and loop.
Code:
//Draw Map to texture.
GenerateMap(CL_GraphicContext* gc, CL_Texture* map_texture)
{
CL_FrameBuffer map_texture_buffer(*gc);
map_texture_buffer.attach_color_buffer(0, *map_texture);
gc->set_frame_buffer(map_texture_buffer);
gc->clear(CL_Colorf::transparent);
//Draw Map
gc->reset_frame_buffer();
gc->reset_texture(0);
}
Code:
CL_SetupCore setup_core;
CL_SetupDisplay setup_display;
CL_SetupGL setup_gl;
CL_DisplayWindowDescription window_desc;
window_desc.set_title("MapTest");
window_desc.set_size(CL_Size(640,480),true);
CL_DisplayWindow window(window_desc);
map_texture = CL_Texture(gc,80*32,60*32,cl_rgba8);
map_rectf = CL_Rectf(map_texture.get_size());
GenerateMap(gc, map_texture);
CL_Image map_image(gc, map_texture, map_rectf);
//loop
{
map_rectf.translate(delta_time * xSpeed, delta_time * ySpeed);
map_image.draw(gc,map_rectf);
window.flip(1);
CL_KeepAlive::process(0);
}
//loop
Bookmarks