Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: ] #451132
04/28/15 21:48
04/28/15 21:48
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Please post a screenshot while facing the wall with debug mode on. There is also 'sun_light' that affects everything, but I'm pretty sure none one of them has to do anything with the framerate drop.

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: 3run] #451133
04/28/15 21:59
04/28/15 21:59

M
Malice
Unregistered
Malice
Unregistered
M



It will take some time to re-break my project and take a screen shot. But I can tell you that the sun and ambient setting caused the problem. Setting them back to the default values my project now runs back at 60 fps.
But from the debug panel I can tell you while facing that sun-point/wall the default REF. jumps from 15 to over 30ms.

Re: [REOPENED]Sun and Ambient light kill frame rate [Re: ] #451134
04/28/15 22:02
04/28/15 22:02
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
At the risk of sounding redundant, whats your clip_far set to? Is there anything in the sky, or camera view when looking at the sky? Can you make it lag anywhere else? as 3run said, a debug panel would be nice to see.

Does this only happen when you look at the sky and you change the parameters in WED? or

Or does this happen when during (after) WEDs parameters are change.

Last edited by DLively; 04/28/15 22:04.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: ] #451135
04/28/15 22:04
04/28/15 22:04
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Malice@ if you don't want to make it public, you can pm me with the screenshot and more details. I'll try to help. About sun and ambient... maybe you are using shaders or something (just a wild guess), cause it should not normally kill framerate.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: 3run] #451137
04/28/15 22:06
04/28/15 22:06
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Agreed with 3run.. at a guess I can only think of shaders as a final guess, without seeing more of your project...

If you don't want to display your game, you can create a small demo that recreates the bug / undesired effect.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: DLively] #451138
04/28/15 22:16
04/28/15 22:16

M
Malice
Unregistered
Malice
Unregistered
M





@3run no shaders in uses...

Link to Image. However, using sun_light =0; and setting ambient light fixes the issue.

Event with normal sun defaults fps are 60 and REF is about 3-4 ms

best results of the screen shots

EDIT links removed

Last edited by Malice; 04/28/15 22:41.
Re: [REOPENED]Sun and Ambient light kill frame rate [Re: ] #451139
04/28/15 22:33
04/28/15 22:33
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I'm not sure about sun and ambient, but there is something terribly wrong with your functions, take a look at FNC ('time for script execution'):

This value normally is bellow 0.9 (some times it's of course bigger, but only for really complex projects!)...

As an alternative, take a look at this (55 loops running and only 0.3 for script execution):

That's probably one of the main reasons for the framerate drop!

F.e. take a look at this complex scene by sivan's map editor:


So first of all, you need to look throw your code, and make sure that execution time get's lower. After that we'll need to dig more into your sprites and models, cause I don't really see any reason for REF being around 72..

Edit: on the last picture FNC is 5.0... O_o can you please send this project to me via PM? I won't share/use it in any ways, I just want to take a closer look and find out wft is going on there.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [Solved]Sun and Ambient light kill frame rate [Re: 3run] #451140
04/28/15 22:40
04/28/15 22:40

M
Malice
Unregistered
Malice
Unregistered
M



The crazy numbers in pic1 are a result of me rapid taping the screen shot button use the numbers for shot pic 2.


EDIT - HAD the camera loop in the player - Stupid me!

Thanks for all the help
Mal

Re: [Solved]Sun and Ambient light kill frame rate [Re: ] #451141
04/28/15 22:41
04/28/15 22:41
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Malice
EDIT - HAD the camera loop in the player - Stupid me!
So the camera loop in the player's loop was the reason? grin
I'm really glad if that solved the problem! laugh

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: [Solved]Sun and Ambient light kill frame rate [Re: 3run] #451142
04/28/15 22:44
04/28/15 22:44

M
Malice
Unregistered
Malice
Unregistered
M



I watched my function climbing into the thousands lol...

Page 2 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1