Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is C-Lite Pure Mode a Video Memory Hog? #182306
02/06/08 04:00
02/06/08 04:00
Joined: Oct 2002
Posts: 2,256
Oz
L
Locoweed Offline OP
Expert
Locoweed  Offline OP
Expert
L

Joined: Oct 2002
Posts: 2,256
Oz
Hi Conetic Team & Roomies,
(Best place I could think of to put this)

The Issue:
After spending 3 weeks to convert 3 years of code from C-Script to C-Lite and finally getting it to compile and run I have found some more interesting problems. Let me note that there is many resources in this game (600+). It is very large.

We have 5 test computers in this test:
Code:
    
Name VideoRam Ram VideoCard
Computer1 128 1gig ati 9600LE
Computer2 128 1gig ati x700
Computer3 256 1gig ati x700
Computer4 256 1gig geForce 7900GS
Computer5 256 2gig geForce 7900GS




First, all 5 computers could run Test Run from SED and Publish before changing to C-Lite. All have DirectX9.0c or later.

After converting to C-lIte we now have following Results:

Test Run from SED:
Computer1 & Computer2 fail (aknex.exe error with no data provided) during compile of Test Run from SED. (128MB video ram is difference that I can see)
Computer3, Computer4, and Computer5 work during Test Run from SED. (256MB video ram is difference that I can see)

Publish with Resource and Compile Exe and Run from SED:
All computers fail this. The Test run during publish doesn't work and running the main.exe with the command line after the build also crashes. I was hoping to do test with 512MB video ram computer (if it Published with 512mb video ram I would know for sure it is video ram), but haven't found 512mb video ram computer yet. So there could many things that cause this failure.

Here are some questions:
1) Does startup compile in C-Lite or C-Lite in general use more Video Ram for some reason as compared to C-Script?
2) What are some suggestions to try to resolve this problem? (Tried changing NEXUS and Virtual Memory. That doesn't work)

I am currently going through and taking out old references to any art files that are not being used any more. I am going to do some bmap_purge() stuff and all, but any other ideas on how to solve the crash during compile due to what seems is the ammount of video memory that the computer has would be appreciated. It all worked in C-Script, but for some reason not in C-Lite.

Thanks,
Loco


Professional A8.30
Spoils of War - East Coast Games
Re: Is C-Lite Pure Mode a Video Memory Hog? [Re: Locoweed] #182307
02/06/08 12:36
02/06/08 12:36
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Lite-C is a language and has nothing to do with video memory. Video memory is not consumed by your programming language, but by screen buffers, textures and meshes.

If you think the problem is related to the size of your game, check how much virtual memory it consumes. Running out of virtual memory can indeed cause problems, even crashes of DirectX and of other programs on your PC.

As a rule of thumb, your game should not consume more that 300..400 MB of memory when you want to support a wide range of systems. It's best to stay well below 300 MB.

Re: Is C-Lite Pure Mode a Video Memory Hog? [Re: jcl] #182308
03/01/08 16:27
03/01/08 16:27
Joined: Feb 2008
Posts: 2
R
Rizzl Offline
Guest
Rizzl  Offline
Guest
R

Joined: Feb 2008
Posts: 2
300-400mb as a rule of thumb? Many modern games uses over a gig, and if the target user is high-end (lets say min syst-req 1gig ram), why should one try to limit it to just 300? Is this because the A7 engine has trouble handling large amounts of memory, or is 300mb just a recommendation from you, a way of saying "aim for low-end systems"?

Re: Is C-Lite Pure Mode a Video Memory Hog? [Re: Rizzl] #182309
03/01/08 18:33
03/01/08 18:33
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
The later one.


Moderated by  HeelX, Spirit 

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