Welcome, Guest. Please login or register. Did you miss your activation email?

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.


Messages - Mr_Blame

Pages: 1 [2] 3 4 ... 13
16
General / Re: Textures going out of scope?
« on: September 04, 2016, 11:31:03 am »
That code doesn't show any problem, show more!

17
General / Re: Tile map help
« on: September 04, 2016, 11:29:28 am »
First thing, that you should do is redesigning your classes, tiles must be held in chucks, in order to reducd draw call amount, and your implementation doesn't provide that.

18
Graphics / Re: Handling multiple Textures and Vertex Arrays
« on: August 31, 2016, 10:11:13 am »
I am sure that caching texture and delaying loading is not a good approach, as i said in any way, no matter from where you take data(ram or disk), in order to load texture, causes lags(because of data transition)

19
Graphics / Re: Handling multiple Textures and Vertex Arrays
« on: August 31, 2016, 02:17:07 am »
If i understand you correctly, you are holding an sf::Image insatnce in ram and load it into texture, when needed. In that case you cannot escape lags, because of some data transitions. So you'spd pre-load, than use some "lazy-loading-technique"

20
General / Re: Unable to apply texture on my cube using opengl & sfml
« on: August 31, 2016, 02:08:49 am »
Seems that you also don't bind texture. You need to uncomment bind-comment because after texture is "generated" it doesn't bund itself to comtext.

21
General / Re: Best way to create a game updater.
« on: August 30, 2016, 01:51:25 pm »
Thanks :)

22
SFML projects / Re:creation - a top down action adventure about undeads
« on: August 29, 2016, 02:52:54 pm »
You need to have a header in your file e.g.
YourFile.txt:
   tileset1.png tileset2.png


Algorithm:
Extract a line and extract from this line tile set paths. Then you know what to do ;).

23
General / Re: Best way to create a game updater.
« on: August 29, 2016, 02:47:20 pm »
Okay, but where can you host the server.

24
What about the corrected Object.h

25
General / Re: Best way to create a game updater.
« on: August 28, 2016, 02:39:22 pm »
HTTP and FTP are just protocols not servers, I think that FTP is better for files

26
General discussions / Re: [SFML] ECS Architecture Efficiency
« on: August 28, 2016, 02:34:34 pm »
Things for to do with SFML:
1.) reuse texture objects(do not make textured trip load data to them instead)
2.) use vertex arrays for for big stuff(e.g. tile map)
Usual things for C++ in order to optimize your code:
1.) use references(e.g. pass const std::string& instead of copying)
2.) avoid constant memory allocations using new/delete/malloc/etc.
3.) precalculate slow formulas

27
General / Re: Using same textures for different things
« on: August 22, 2016, 09:10:00 pm »
I do not understand you... N amount of different graphics entity can reference same to the texture.

28
Graphics / Re: Upgraded from 1.6 to 2.4.0 is ~18 Times Slower
« on: August 18, 2016, 10:12:34 am »
Do not call pollEvent once per frame, event queue may overflow!

29
Graphics / Re: Upgraded from 1.6 to 2.4.0 is ~18 Times Slower
« on: August 16, 2016, 11:59:53 am »
Did you compile both tests in release configuration? SFML versions(from 2.0 i think) have a lot of checks in their code when compiled in debug.

30
General / Re: Strange Movement with Fixed Timestep
« on: August 14, 2016, 10:06:06 am »
This may be std::queue allocation issue(SFML uses std::queue for event handling)

Pages: 1 [2] 3 4 ... 13
anything