About Store Forum Documentation Contact



Post Reply 
Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Author Message
tiagolapa Offline
Member

Post: #1
Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Hello

I have a little problem

With the same project, if i set:

D.mode(App.desktopW()*0.7, App.desktopH()*0.8, 0);
all works fine in window with 60 fps both in Dx9 and DX10+


if i set:
//D.mode(App.desktopW()*0.7, App.desktopH()*0.8, 0);
D.mode(-1, -1, 1);

DX9 renders crispy image, D.sync(false) > 100 fps, but my character runs slow
DX10+ runs fast, more fps, but i get image blurred, like when someone selects wrong lcd screen resolution.

What may be the problem? Thank you, Tiago

my code:
PHP Code:
void InitPre()
{
   
EE_INIT();
   
App.flag=APP_FULL_TOGGLE|APP_KB_EXCLUSIVE|APP_AUTO_FREE_PHYS_BODY_HELPER_DATA|APP_AUTO_FREE_OPEN_GL_ES_DATA|APP_WORK_IN_BACKGROUND|APP_NO_PAUSE_ON_WINDOW_MOVE_SIZE;
   
App.flag|=APP_MEM_LEAKS;
   
   
//D.mode(App.desktopW()*0.7, App.desktopH()*0.8, 0);
   
D.mode(-1, -11);
   
D.sync(false);
   
D.viewRange(200);
   
D.dofMode(DOF_NONE);
   
D.samples(1);
   
D.edgeSoften(EDGE_SOFTEN_NONE);
   
D.texFilter(0);
   
   
Cam.dist=5;

   
//LogConsole();

04-14-2015 11:08 AM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #2
RE: Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Ok, in fullscreen if i set D.shadowMode(SHADOW_NONE) then DX9 works fine. Maybe character movement slowing down with shadows on is bad programming from my part. But what puzzles me is that i get > 100 fps with shadows on.

With DX10+ i noticed my monitor is in low resolution. But i set D.mode(1920, 1080, 1) and check values with D.text(0, -D.h()+0.5, S+"Fps: "+Time.fps()+" "+D.resW()+" "+D.resH()+" "+D.renderW()+" "+D.renderH()+" "+D.density())
Values for W and H are returning correct, but screen is in low resolution!?
(This post was last modified: 04-14-2015 12:53 PM by tiagolapa.)
04-14-2015 12:52 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Hi,

On DX10+ can you do this: D.text(0, 0, S+D.screenW()+' '+D.screenH());
that's the actual screen resolution.

Do you have one or multiple monitors connected?

What's the highest resolution that your monitor(s) can support?
04-14-2015 09:20 PM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #4
RE: Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Hello

Your code with DX10+ reports me 1600x1024
With DX9 i get normal 1920x1080 resolution.

I have 1920x1080 main monitor and secondary 1280x1024 monitor.

I tested tutorial "basic app"
Changed InitPre and got same results: low resolution in DX10+
PHP Code:
void InitPre() // init before engine inits
{
   
EE_INIT(); // call auto-generated function that will setup application name, load engine and project data
   
D.mode(-1, -11);

04-14-2015 11:00 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Fullscreen: Dx9 with sync off is slow, Dx10+ renders blurred
Thank you, for a temporary workaround, if you disconnect your secondary monitor, it is possible you will get correct results.
04-15-2015 04:37 AM
Find all posts by this user Quote this message in a reply
Post Reply