PB 2.90 - StartDrawing() - Sprite or ImageLib ?

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi @ all!
I was a bit wondered when i created a /COMMENTED asm source output of my game project! I saw the list of all used libs in the beginning of the asm source - But what was that? I DONT use any command of the ImageLib, but it was included too!? I tried to find this problem, because i wanted to optimize my game as most as possible and i dont need this ImageLib...!? I found out, if you use the "StartDrawing()" "StopDrawing()" or any other 2dDrawingCommand of the 2DDrawingLib, the ImageLib will be automatical included... Mhhh... When i want to draw a Box, Circle or whatever, why does it need the ImageLib? Is there any way to remove the ImageLib in my project when using only Sprites and 2DDrawing operations? Thanks in advance... Fred, is there any way?



PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

Hello Thorsten,

welcome to the /COMMENTED /Reasm People.
nice to hear that anybody study his own code(like i do).

Getting better with a little help from my friends....thx Siggi
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

That's strange than the Image lib is included if you're using none of these commands... I will check this tonight.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Does anybody know the syntax for the /reasm switch? Haven't been able to make it work. The /res works, but I put the created resident file in /Residents and PureBasic won't read it. Any ideas why?

Bye,

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
Rings wrote:
welcome to the /COMMENTED /Reasm People.
nice to hear that anybody study his own code(like i do).
- I try to understand the x86 sourcecode


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
El_Choni wrote:
Does anybody know the syntax for the /reasm switch? Haven't been able to make it work. The /res works, but I put the created resident file in /Residents and PureBasic won't read it. Any ideas why?
Hi El_Choni!
Just copy/save your *.pb file to the "compiler\" folder as "test.pb" for example... Write a *.bat script or using "MS-DOS Input" and try following steps:


PBCompiler.exe /COMMENTED test.pb
This should create a documented asm output as purebasic.asm in your compiler folder.

PBCompiler.exe /REASM purebasic.asm
This will recompile your *.asm file and create a executebale as purebasic.exe - I found out that this way will optimize the executeable in most way up to 512 byte without changing any part of the asm source... :wink:


Sorry, i cant help you at the moment with your resource file problem... Havent tried it until now ...

Keep on your great work and hope to hear from you soon... bye :wink:


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
Fred wrote:
That's strange than the Image lib is included if you're using none of these commands... I will check this tonight.
Hi Fred!
Have you the same problem with the ImageLib...? Any news to report about this...?
Keep on your work...


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Bug fixed.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
Fred wrote:
Bug fixed.
Cool! Nice to hear...

PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Fred, is there any way to remove the ImageLib when creating a /COMMENTED output asm file and want to /REASM it? I tried to remove the following two lines but the compiler will create no executeable ;(


EXTERN _PB_InitImage@0
CALL _PB_InitImage@0


Thanks in advance...


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten

Edited by - MrVainSCL on 13 February 2002 22:43:40
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Hi,

If I were you, I would open the Image library in a text or hex editor and check if any of the variables (at the end of the lib) are referenced in the PureBasic.asm file (same for functions, but that's more obvious).

Bye,

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.
If I were you, I would open the Image library in a text or hex editor and check if any of the variables (at the end of the lib) are referenced in the PureBasic.asm file (same for functions, but that's more obvious).
Good morning El_Choni! :wink:
Mhhh yes, all libs are crypted but you are right... i could have a look to the end of the libs and search if any stuff will be in my asm source too... Normaly there should be no Image() related stuff, because i dont use any commands of the ImageLib and as Fred wrote, this has been fixed now... I only try to remove the unused ImageLib() out of my executeable... Anyway many thanks...


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
Post Reply