Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Hemlos

#1576
Its true, GLBasic PWNS
#1577
Announcements / Forum update
2006-Oct-10
LoL! An Emotiwave!
#1578
Yes indeed, GLSL was only recently innovated, im impressed with the turnover time on implementation to the highend GLBASIC language!

Curious though, i heard good things about the directx innovations ..shaders, is it possible to add these in our code in the gbas files?
#1579
Youre welcome, check out my last post of the FPS and elapsed time function too
#1580
Hmm it used to work fine, i havent check recently though...
Assuming it works:
the differences between 1 and -1 are very subtle, and you may not see those differences until you really have at least more than one or two image/object's overlapping one another.
#1581
q. Why is everything so slow?

a. (assuming your video drivers are upto date)
You made a loop that does too many calculations per frame (main loop).
#1582
Edited and UPDATED AUG. 5, 2008 for GLBasic Version 5+

Excellent Timer Function that keeps track of many timers that calculate seconds!
These return TRUE if the alloted time is reached!

Usage:
Code (glbasic) Select
onesecondelapsed=TTIMER(0,1) //returns TURE after 1 second
oneminuteelaped=TTIMER(1,60) //returns TRUE after 60 seconds

Function:
Code (glbasic) Select
FUNCTION TTIMER: TTNum, TTCountTo
//onesecondelapsed=TTIMER(0,1) //returns TURE after 1 second
//oneminuteelaped=TTIMER(1,60) //returns TRUE after 60 seconds
STATIC  Init_TTTimer,NumOfTimers, CheckIt
IF Init_TTTimer<>TRUE;
NumOfTimers=100;
Init_TTTimer=TRUE;
DIM TIMETIMER[NumOfTimers][2];
TIMETIMER[0][0]=-1;
TIMETIMER[0][1]=-1;
TIMETIMER[1][0]=-1;
TIMETIMER[1][1]=-1;
ENDIF
IF TTNum>-1
TIMETIMER[TTNum][0]=GETTIMER()
TIMETIMER[TTNum][1]=TIMETIMER[TTNum][1]+TIMETIMER[TTNum][0]
CheckIt=TIMETIMER[TTNum][1]/1000
IF INTEGER(CheckIt)>=TTCountTo
TIMETIMER[TTNum][0]=0
TIMETIMER[TTNum][1]=0
checkit=0
RETURN TRUE
ELSE
RETURN FALSE
ENDIF
ENDIF
ENDFUNCTION


QuoteTips:
1. becareful not to use too many timers,
2. reuse the id slots if they arent being used anymore.
3. More timers you se will result in less performance, dont use more than needed.
4. Do not use any single timer for multiple events! Watch those ID's!
Note:
QuoteUpdated for use with current compiler: EDITED ON SEPT.23 2005
-Hemlos
#1583
GLBasic - en / GLBasic
2004-Oct-21
The new cartoon effects are like anime drawings, impressive!
#1584
GLBasic - en / GLBasic
2004-Feb-19
Nice work with the 3d lighting gernot!